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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy