mirror of
https://github.com/saymrwulf/xous-core.git
synced 2026-11-18 08:52:45 +00:00
fix Bitmap::from_png rotate
This commit is contained in:
parent
f9ee19e526
commit
7af94e674d
1 changed files with 3 additions and 2 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue