Correct the 24bit decoding in bitmaptools.readinto()

This commit is contained in:
James Carr 2021-09-13 19:50:35 +01:00
parent cddbfffb38
commit 56ecdee5a0
No known key found for this signature in database
GPG Key ID: 04CEE584D0B924E0

View File

@ -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: