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,9 +165,10 @@ impl Bitmap {
}; };
if rotate { if rotate {
bm.rotate90(); bm.rotate90()
} else {
bm
} }
bm
} }
fn fit(from: Point, into: Point) -> (bool, usize) { fn fit(from: Point, into: Point) -> (bool, usize) {