forge
Explore
Log in

Don't you dare go Hollow

layout/tile: Remove redundant .to_f64()

Browse files at this commit

f30db163b5748e8cf95c05aba77d0d3736f40543Ivan MolodetskikhParent: a78f07c
src/layout/tile.rsmodified+1 -1
@@ -1042,7 +1042,7 @@ impl<W: LayoutElement> Tile<W> {
1042 let location = location + self.bob_offset();1042 let location = location + self.bob_offset();
1043 1043
1044 let window_loc = self.window_loc();1044 let window_loc = self.window_loc();
1045- let window_size = self.window_size().to_f64();1045+ let window_size = self.window_size();
1046 let animated_window_size = self.animated_window_size();1046 let animated_window_size = self.animated_window_size();
1047 let window_render_loc = location + window_loc;1047 let window_render_loc = location + window_loc;
1048 let area = Rectangle::new(window_render_loc, animated_window_size);1048 let area = Rectangle::new(window_render_loc, animated_window_size);