diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2018-09-06 14:49:49 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2018-09-06 14:49:49 -0700 |
| commit | 1683eb913d5bfb4265df56bf286d9971185a3a82 (patch) | |
| tree | e536c26b316b688e48abb8f7233e706f8832ba76 /shared-module/displayio/Palette.h | |
| parent | 121903b6eeb9712cae86a24c5fe82cb7b144e504 (diff) | |
Minor tweaks based on feedback
Diffstat (limited to 'shared-module/displayio/Palette.h')
| -rw-r--r-- | shared-module/displayio/Palette.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/shared-module/displayio/Palette.h b/shared-module/displayio/Palette.h index 22c737c9d..5a5f1d287 100644 --- a/shared-module/displayio/Palette.h +++ b/shared-module/displayio/Palette.h @@ -36,11 +36,11 @@ typedef struct { mp_obj_base_t base; uint32_t* opaque; uint32_t* colors; - uint8_t max_value; + uint8_t color_count; bool needs_refresh; } displayio_palette_t; -bool displayio_palette_get_color(displayio_palette_t *palette, uint32_t value, uint16_t* color); +bool displayio_palette_get_color(displayio_palette_t *palette, uint32_t palette_index, uint16_t* color); bool displayio_palette_needs_refresh(displayio_palette_t *self); void displayio_palette_finish_refresh(displayio_palette_t *self); |
