···267267268268 /// resized is like enlarged, but transforms from the center, by first translating the region by (-dx, -dy)
269269 pub fn resized(&self, dx: i32, dy: i32) -> Self {
270270- self.translated(-dx, -dy).enlarged(dx - 1, dy - 1)
270270+ self.translated(-dx / 2, -dy / 2).enlarged(dx, dy)
271271 }
272272273273 pub fn x_range(&self) -> std::ops::RangeInclusive<usize> {