Skip to content

Commit

Permalink
Merge pull request adafruit#5338 from lesamouraipourpre/bitmaptools-r…
Browse files Browse the repository at this point in the history
…eadinto

Correct the 24bit decoding in bitmaptools.readinto()
  • Loading branch information
dhalbert authored Sep 13, 2021
2 parents 3e9cf8f + 56ecdee commit 9b2d8ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shared-module/bitmaptools/__init__.c
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ void common_hal_bitmaptools_readinto(displayio_bitmap_t *self, pyb_file_obj_t *f
break;

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

case 32:
Expand Down

0 comments on commit 9b2d8ad

Please sign in to comment.