diff options
| author | Dan Halbert <halbert@halwitz.org> | 2019-04-04 18:17:02 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-04 18:17:02 -0400 |
| commit | 35cfc61607dc22453aeffbdcfcc0a74af2a25071 (patch) | |
| tree | b5f1c93f749a8eeda50ecfa8d00acdd351fef8b2 /shared-module/displayio/Bitmap.h | |
| parent | 5b0c1c8df9b205221b50c588abf4106dced0ca1c (diff) | |
| parent | 99b4913fda963bd1e07ea9856f9cde8d0339a680 (diff) | |
Merge pull request #1746 from tannewt/fix_bitmap_wrap
Support multi-byte values with Bitmap
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; |
