Fix reading 4-bit data
This commit is contained in:
parent
7970a2fee1
commit
7229fe631d
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user