this repo has no description
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

๐Ÿ› Fix Region.resized implementation

authored by

Gwenn Le Bihan and committed by
Ewen Le Bihan
25f8c547 8cc00246

+1 -1
+1 -1
src/region.rs
··· 267 267 268 268 /// resized is like enlarged, but transforms from the center, by first translating the region by (-dx, -dy) 269 269 pub fn resized(&self, dx: i32, dy: i32) -> Self { 270 - self.translated(-dx, -dy).enlarged(dx - 1, dy - 1) 270 + self.translated(-dx / 2, -dy / 2).enlarged(dx, dy) 271 271 } 272 272 273 273 pub fn x_range(&self) -> std::ops::RangeInclusive<usize> {