Fix reading 4-bit data

This commit is contained in:
Jeff Epler 2021-03-21 13:37:38 -05:00
parent 7970a2fee1
commit 7229fe631d

View File

@ -464,7 +464,7 @@ void common_hal_bitmaptools_readinto(displayio_bitmap_t *self, pyb_file_obj_t *f
int byte_offset = x / 2;
int bit_offset = 4 * (reverse_pixels_in_element ? (1 - x % 2) : x % 2);
value = (rowdata8[byte_offset] >> bit_offset) & 7;
value = (rowdata8[byte_offset] >> bit_offset) & 15;
break;
}
case 8: