8000 Merge pull request #5338 from lesamouraipourpre/bitmaptools-readinto · domdfcoding/circuitpython@9b2d8ad · GitHub
[go: up one dir, main page]

Skip to content

Commit 9b2d8ad

Browse files
authored
Merge pull request adafruit#5338 from lesamouraipourpre/bitmaptools-readinto
Correct the 24bit decoding in bitmaptools.readinto()
2 parents 3e9cf8f + 56ecdee commit 9b2d8ad

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