Ensure ints are passed to Scale()

This commit is contained in:
DarkPhoenix
2023-12-06 21:19:00 +06:00
parent 57830fd5a5
commit 3593d16bd1
3 changed files with 3 additions and 3 deletions

View File

@@ -104,7 +104,7 @@ class BitmapLoader:
return None
if scale > 1:
return img.Scale(img.GetWidth() // scale, img.GetHeight() // scale).ConvertToBitmap()
return img.Scale(round(img.GetWidth() // scale), round(img.GetHeight() // scale)).ConvertToBitmap()
return img.ConvertToBitmap()
@classmethod