We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 733cdf5 commit 397badaCopy full SHA for 397bada
1 file changed
stage.py
@@ -206,7 +206,7 @@ def read_palette(self):
206
for color in range(self.colors):
207
buffer = f.read(4)
208
c = color565(buffer[0], buffer[1], buffer[2])
209
- palette[color] = (c << 8) | (c >> 8)
+ palette[color] = ((c << 8) | (c >> 8)) & 0xffff
210
return palette
211
212
def read_data(self, offset=0, buffer=None):
0 commit comments