mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-27 07:03:36 -04:00
dist: Fix bug with grayscale icons becoming blue when scaled
This commit is contained in:
parent
80892ede94
commit
46b7fc6ee2
@ -359,8 +359,7 @@ class Icon:
|
||||
Icon.notify.warning("Generating %dx%d icon by scaling down %dx%d image" % (required_size, required_size, from_size, from_size))
|
||||
|
||||
image = PNMImage(required_size, required_size)
|
||||
if self.images[from_size].hasAlpha():
|
||||
image.addAlpha()
|
||||
image.setColorType(self.images[from_size].getColorType())
|
||||
image.quickFilterFrom(self.images[from_size])
|
||||
self.images[required_size] = image
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user