Skip to content

Commit c64fccb

Browse files
committed
hex may be more obvious
1 parent 7229fe6 commit c64fccb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-module/bitmaptools/__init__.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -464,7 +464,7 @@ void common_hal_bitmaptools_readinto(displayio_bitmap_t *self, pyb_file_obj_t *f
464464
int byte_offset = x / 2;
465465
int bit_offset = 4 * (reverse_pixels_in_element ? (1 - x % 2) : x % 2);
466466

467-
value = (rowdata8[byte_offset] >> bit_offset) & 15;
467+
value = (rowdata8[byte_offset] >> bit_offset) & 0xf;
468468
break;
469469
}
470470
case 8:

0 commit comments

Comments
 (0)