Skip to content

Commit 058c16e

Browse files
authored
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()
1 parent 8104b42 commit 058c16e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

shared-module/displayio/Palette.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,12 @@ void common_hal_displayio_palette_construct(displayio_palette_t* self, uint16_t
3535

3636
void common_hal_displayio_palette_make_opaque(displayio_palette_t* self, uint32_t palette_index) {
3737
self->colors[palette_index].transparent = false;
38+
self->needs_refresh = true;
3839
}
3940

4041
void common_hal_displayio_palette_make_transparent(displayio_palette_t* self, uint32_t palette_index) {
4142
self->colors[palette_index].transparent = true;
43+
self->needs_refresh = true;
4244
}
4345

4446
uint32_t common_hal_displayio_palette_get_len(displayio_palette_t* self) {

0 commit comments

Comments
 (0)