diff options
| author | Jeff Epler <jepler@gmail.com> | 2021-03-21 13:48:08 -0500 |
|---|---|---|
| committer | Jeff Epler <jepler@gmail.com> | 2021-03-21 13:48:08 -0500 |
| commit | c64fccbeeee641f448b14de879ba8b982751ac0f (patch) | |
| tree | a0be65e6898b1ebf5bb44c8b722080dd9551c90c /shared-module | |
| parent | 7229fe631d5aa3b2cf7e73948b12ea93ff52587d (diff) | |
hex may be more obvious
Diffstat (limited to 'shared-module')
| -rw-r--r-- | shared-module/bitmaptools/__init__.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-module/bitmaptools/__init__.c b/shared-module/bitmaptools/__init__.c index 53f5877c3..ac214a125 100644 --- a/shared-module/bitmaptools/__init__.c +++ b/shared-module/bitmaptools/__init__.c @@ -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) & 15; + value = (rowdata8[byte_offset] >> bit_offset) & 0xf; break; } case 8: |
