diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2019-04-04 12:50:35 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2019-04-04 12:50:35 -0700 |
| commit | 6fcda1dec40efe3513cc5775205d276ea50b4d21 (patch) | |
| tree | 3901d98ba2a2357015830aa416b63cc8b77772e1 /shared-module/displayio/Bitmap.h | |
| parent | 5b0c1c8df9b205221b50c588abf4106dced0ca1c (diff) | |
Support multi-byte values with Bitmap
It also corrects the behavior of single byte values.
Fixes #1744
Diffstat (limited to 'shared-module/displayio/Bitmap.h')
| -rw-r--r-- | shared-module/displayio/Bitmap.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/shared-module/displayio/Bitmap.h b/shared-module/displayio/Bitmap.h index 485b57daf..48ca9e2cf 100644 --- a/shared-module/displayio/Bitmap.h +++ b/shared-module/displayio/Bitmap.h @@ -36,11 +36,11 @@ typedef struct { mp_obj_base_t base; uint16_t width; uint16_t height; - uint32_t* data; - uint16_t stride; // words + size_t* data; + uint16_t stride; // size_t's uint8_t bits_per_value; uint8_t x_shift; - uint8_t x_mask; + size_t x_mask; uint16_t bitmask; bool read_only; } displayio_bitmap_t; |
