summaryrefslogtreecommitdiff
path: root/shared-module
diff options
context:
space:
mode:
authorDavePutz <dwputz@gmail.com>2020-06-10 17:11:28 -0500
committerGitHub <noreply@github.com>2020-06-10 17:11:28 -0500
commit058c16e98c4036c8a53547062f513a0d74eb90c4 (patch)
tree6d74d98282c6175b380308d026e977e1c5646e15 /shared-module
parent8104b428945f0c650452df3c67994bf416273c50 (diff)
Issue #3014 - refresh after changing to transparent
Adding self->needs_refresh = true; in common_hal_displayio_palette_make_opaque() and common_hal_displayio_palette_make_transparent()
Diffstat (limited to 'shared-module')
-rw-r--r--shared-module/displayio/Palette.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/shared-module/displayio/Palette.c b/shared-module/displayio/Palette.c
index 1ef03aab4..facb1fa73 100644
--- a/shared-module/displayio/Palette.c
+++ b/shared-module/displayio/Palette.c
@@ -35,10 +35,12 @@ void common_hal_displayio_palette_construct(displayio_palette_t* self, uint16_t
void common_hal_displayio_palette_make_opaque(displayio_palette_t* self, uint32_t palette_index) {
self->colors[palette_index].transparent = false;
+ self->needs_refresh = true;
}
void common_hal_displayio_palette_make_transparent(displayio_palette_t* self, uint32_t palette_index) {
self->colors[palette_index].transparent = true;
+ self->needs_refresh = true;
}
uint32_t common_hal_displayio_palette_get_len(displayio_palette_t* self) {