We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 135a06e commit 9481049Copy full SHA for 9481049
1 file changed
adafruit_imageload/bmp/indexed.py
@@ -48,7 +48,7 @@ def load(file, width, height, data_start, colors, color_depth, *, bitmap=None, p
48
file.seek(data_start - colors * 4)
49
for value in range(colors):
50
c_bytes = file.read(4)
51
- # Need to swap red & green bytes (bytes 0 and 2)
+ # Need to swap red & blue bytes (bytes 0 and 2)
52
palette[value] = bytes(b''.join([c_bytes[2:3], c_bytes[1:2], c_bytes[0:1], c_bytes[3:1]]))
53
54
if bitmap:
0 commit comments