mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
deploy-ng: add 128, 256 to req. icon sizes, prefer scale from double
This commit is contained in:
parent
2fe0599255
commit
f708402760
@ -336,11 +336,14 @@ class Icon:
|
||||
""" Generates image sizes that should be present but aren't by scaling
|
||||
from the next higher size. """
|
||||
|
||||
for required_size in (48, 32, 24, 16):
|
||||
for required_size in (256, 128, 48, 32, 16):
|
||||
if required_size in self.images:
|
||||
continue
|
||||
|
||||
sizes = sorted(self.images.keys())
|
||||
if required_size * 2 in sizes:
|
||||
from_size = required_size * 2
|
||||
else:
|
||||
for from_size in sizes:
|
||||
if from_size > required_size:
|
||||
break
|
||||
|
Loading…
x
Reference in New Issue
Block a user