8000 Correct the 24bit decoding in bitmaptools.readinto() · unwiredben/circuitpython@56ecdee · GitHub
[go: up one dir, main page]

Skip to content

Commit 56ecdee

Browse files
Correct the 24bit decoding in bitmaptools.readinto()
1 parent cddbfff commit 56ecdee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-module/bitmaptools/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ void common_hal_bitmaptools_readinto(displayio_bitmap_t *self, pyb_file_obj_t *f
591591
break;
592592

593593
case 24:
594-
value = (rowdata8[x * 3] << 16) | (rowdata8[x * 3 + 1] << 8) | (rowdata8[x * 3 + 2] << 8);
594+
value = (rowdata8[x * 3] << 16) | (rowdata8[x * 3 + 1] << 8) | rowdata8[x * 3 + 2];
595595
break;
596596

597597
case 32:

0 commit comments

Comments
 (0)
0