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
1 changed files with 1 additions and 1 deletions

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: