changeset 14101 | ceda58e398e0 |
parent 14078 | bf40b5f938b0 |
child 14121 | 69db1d2e4cec |
--- a/rust/land2d/src/lib.rs Fri Nov 02 22:59:22 2018 +0100 +++ b/rust/land2d/src/lib.rs Sat Nov 03 01:47:39 2018 +0300 @@ -17,7 +17,7 @@ pub fn new(play_size: Size, fill_value: T) -> Self { let real_size = play_size.next_power_of_two(); let top_left = Point::new( - (real_size.width - play_size.width / 2) as i32, + ((real_size.width - play_size.width) / 2) as i32, (real_size.height - play_size.height) as i32, ); let play_box = Rect::from_size(top_left, play_size);