diff --git a/gui/bitmap_loader.py b/gui/bitmap_loader.py index 325cbc7e3..801959d34 100644 --- a/gui/bitmap_loader.py +++ b/gui/bitmap_loader.py @@ -103,10 +103,9 @@ class BitmapLoader: pyfalog.warning("Missing icon file: {0}/{1}".format(location, filename)) return None - bmp: wx.Bitmap = img.ConvertToBitmap() if scale > 1: - bmp.SetSize((bmp.GetWidth() // scale, bmp.GetHeight() // scale)) - return bmp + return img.Scale(img.GetWidth() // scale, img.GetHeight() // scale).ConvertToBitmap() + return img.ConvertToBitmap() @classmethod def loadScaledBitmap(cls, name, location, scale=0):