mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-28 15:53:55 -04:00
dist: Remove dead code in Icon class
This commit is contained in:
parent
127798437f
commit
92e3dbbe58
@ -414,9 +414,6 @@ class Icon:
|
|||||||
for x in xrange(size):
|
for x in xrange(size):
|
||||||
pixel = image2.get_pixel(x, size - y - 1)
|
pixel = image2.get_pixel(x, size - y - 1)
|
||||||
index = colors.index(pixel)
|
index = colors.index(pixel)
|
||||||
if index >= 256:
|
|
||||||
# Find closest pixel instead.
|
|
||||||
index = closest_indices[index - 256]
|
|
||||||
fp.write(struct.pack('<B', index))
|
fp.write(struct.pack('<B', index))
|
||||||
fp.write(rowalign)
|
fp.write(rowalign)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user