fix Bitmap::from_png rotate

This commit is contained in:
nworbnhoj 2022-07-28 07:53:52 +10:00
parent f9ee19e526
commit 7af94e674d

View file

@ -165,10 +165,11 @@ impl Bitmap {
};
if rotate {
bm.rotate90();
}
bm.rotate90()
} else {
bm
}
}
fn fit(from: Point, into: Point) -> (bool, usize) {
let (from_x, from_y) = (from.x as f32, from.y as f32);