From f5cfd6e1f129645cee8c6868182a9060acf839cc Mon Sep 17 00:00:00 2001 From: Radomir Dopieralski Date: Wed, 20 Mar 2019 20:36:05 +0100 Subject: [PATCH] Make displayio.Palette support more than 255 colors Fix #1671 --- shared-module/displayio/Palette.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared-module/displayio/Palette.h b/shared-module/displayio/Palette.h index 5a5f1d2874..3813e8bddf 100644 --- a/shared-module/displayio/Palette.h +++ b/shared-module/displayio/Palette.h @@ -36,7 +36,7 @@ typedef struct { mp_obj_base_t base; uint32_t* opaque; uint32_t* colors; - uint8_t color_count; + uint32_t color_count; bool needs_refresh; } displayio_palette_t;