summaryrefslogtreecommitdiff
path: root/shared-module/displayio/Sprite.h
diff options
context:
space:
mode:
authorScott Shawcroft <scott@tannewt.org>2018-09-10 22:00:21 -0700
committerScott Shawcroft <scott@tannewt.org>2018-09-12 15:25:59 -0700
commitf21cf15c384756ae462fdffded79c4bda8afcc28 (patch)
tree249eb50cd46c11e163083cba74ebb7a819ed8f55 /shared-module/displayio/Sprite.h
parent9ace50a18ad4baa431c406fd6dc509f9fee92c4c (diff)
Add OnDiskBitmap which loads pixel data straight from disk.
Also, renamed Sprite's palette to pixel_shader so it can be anything that produces colors based on values (including color values). Added a ColorConverter that converts RGB888 (found in bitmaps) to RGB565 for the display. Fixes #1182
Diffstat (limited to 'shared-module/displayio/Sprite.h')
-rw-r--r--shared-module/displayio/Sprite.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/shared-module/displayio/Sprite.h b/shared-module/displayio/Sprite.h
index 213130af8..dc368c4b7 100644
--- a/shared-module/displayio/Sprite.h
+++ b/shared-module/displayio/Sprite.h
@@ -31,12 +31,11 @@
#include <stdint.h>
#include "py/obj.h"
-#include "shared-bindings/displayio/Palette.h"
typedef struct {
mp_obj_base_t base;
mp_obj_t bitmap;
- displayio_palette_t* palette;
+ mp_obj_t pixel_shader;
uint16_t x;
uint16_t y;
uint16_t width;