From 7af94e674de4f1ed9636a4bc00b05d9d2fd1679c Mon Sep 17 00:00:00 2001 From: nworbnhoj Date: Thu, 28 Jul 2022 07:53:52 +1000 Subject: [PATCH] fix Bitmap::from_png rotate --- services/gam/src/bitmap.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/gam/src/bitmap.rs b/services/gam/src/bitmap.rs index 773e4c409..aa10284ad 100644 --- a/services/gam/src/bitmap.rs +++ b/services/gam/src/bitmap.rs @@ -165,9 +165,10 @@ impl Bitmap { }; if rotate { - bm.rotate90(); + bm.rotate90() + } else { + bm } - bm } fn fit(from: Point, into: Point) -> (bool, usize) {