Skip to content

Commit 9481049

Browse files
committed
Changed comment to reflect actual swap of red & blue bytes
1 parent 135a06e commit 9481049

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_imageload/bmp/indexed.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def load(file, width, height, data_start, colors, color_depth, *, bitmap=None, p
4848
file.seek(data_start - colors * 4)
4949
for value in range(colors):
5050
c_bytes = file.read(4)
51-
# Need to swap red & green bytes (bytes 0 and 2)
51+
# Need to swap red & blue bytes (bytes 0 and 2)
5252
palette[value] = bytes(b''.join([c_bytes[2:3], c_bytes[1:2], c_bytes[0:1], c_bytes[3:1]]))
5353

5454
if bitmap:

0 commit comments

Comments
 (0)