Skip to content

Commit 35d8692

Browse files
author
Melissa LeBlanc-Williams
committed
Now it handles 32-bit color by discarding alpha channel
1 parent 8355d8f commit 35d8692

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/ra8875_bmptest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def draw(self, disp, x=0, y=0):
7676
break
7777
if self.bpp == 16:
7878
color = color555(line_data[i] | line_data[i+1] << 8)
79-
if self.bpp == 24:
79+
if self.bpp == 24 or self.bpp == 32:
8080
color = color565(line_data[i+2], line_data[i+1], line_data[i])
8181
current_line_data = current_line_data + struct.pack(">H", color)
8282
disp.setxy(x, self.height - line + y)

0 commit comments

Comments
 (0)