From: foamyguy Date: Sun, 19 Dec 2021 21:30:09 +0000 (-0600) Subject: return palette from OnDiskBitamp.pixel_shader X-Git-Tag: 0.9.0~2^2~1 X-Git-Url: https://git.ayoreis.com/hackapet/Adafruit_Blinka_Displayio.git/commitdiff_plain/be0d7be1511de0fa94e245f900ee0099859153de return palette from OnDiskBitamp.pixel_shader --- diff --git a/displayio/_ondiskbitmap.py b/displayio/_ondiskbitmap.py index 2c48043..3436698 100644 --- a/displayio/_ondiskbitmap.py +++ b/displayio/_ondiskbitmap.py @@ -48,7 +48,7 @@ class OnDiskBitmap: @property def pixel_shader(self) -> Union[ColorConverter, Palette]: """Height of the bitmap. (read only)""" - return self._image.height + return self._image.getpalette() def __getitem__(self, index: Union[tuple, list, int]) -> int: """