Merge pull request #5338 from lesamouraipourpre/bitmaptools-readinto

Correct the 24bit decoding in bitmaptools.readinto()
This commit is contained in:
Dan Halbert 2021-09-13 17:11:26 -04:00 committed by GitHub
commit 9b2d8ade2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -591,7 +591,7 @@ void common_hal_bitmaptools_readinto(displayio_bitmap_t *self, pyb_file_obj_t *f
break; break;
case 24: 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; break;
case 32: case 32: