circuitpython/shared-module/displayio
Jeff Epler f224ed1848 OnDiskBitmap: Correct handling of "0 color palette" images
Microsoft documentation says:

> If biCompression equals BI_RGB and the bitmap uses 8 bpp or less, the bitmap has a color table immediatelly following the BITMAPINFOHEADER structure. The color table consists of an array of RGBQUAD values. The size of the array is given by the biClrUsed member. If biClrUsed is zero, the array contains the maximum number of colors for the given bitdepth; that is, 2^biBitCount colors.

Formerly, we treated 0 colors as "no image palette" during construction,
but then during common_hal_displayio_ondiskbitmap_get_pixel indexed into
the palette anyway.  This could have unpredictable results.  On a pygamer,
it gave an image that was blue and black.  On magtag, it gave a crash.
2020-12-17 10:54:37 -06:00
..
Bitmap.c Merge adafruit/main latest 2020-08-21 14:37:32 -05:00
Bitmap.h Track a dirty area for in-memory bitmaps 2019-07-18 16:47:28 -07:00
ColorConverter.c displayio: ColorConverter: fix logic errors about transparent pixels 2020-12-16 13:48:27 -06:00
ColorConverter.h displayio: Pass transparent_color to ColorConverter 2020-10-12 20:48:04 -05:00
Display.c displayio: further ensure just one start_terminal call 2020-10-15 15:24:19 -05:00
Display.h Mostly-working-version with comments 2020-09-24 22:07:33 -04:00
EPaperDisplay.c EPaperDisplay: add rotation property 2020-11-18 18:06:31 -06:00
EPaperDisplay.h Add board.DISPLAY to MagTag. Fix luma computation 2020-11-13 18:57:52 -08:00
FourWire.c Add board.DISPLAY to MagTag. Fix luma computation 2020-11-13 18:57:52 -08:00
FourWire.h Add support for grayscale displays that are < 8 bit depth. 2019-07-19 16:06:11 -07:00
Group.c vectorio: clean up after group removal 2020-05-10 15:36:23 -07:00
Group.h Bitpack bools in TileGrid and Group 2019-09-04 10:27:21 -07:00
I2CDisplay.c Add board.DISPLAY to MagTag. Fix luma computation 2020-11-13 18:57:52 -08:00
I2CDisplay.h Add support for grayscale displays that are < 8 bit depth. 2019-07-19 16:06:11 -07:00
OnDiskBitmap.c OnDiskBitmap: Correct handling of "0 color palette" images 2020-12-17 10:54:37 -06:00
OnDiskBitmap.h added monochrome, 8bpp indexed, and 32bpp ARGB BMPs 2019-02-28 23:08:12 -08:00
Palette.c Fix Palette grayscale for EInk. 2020-11-18 16:32:07 -08:00
Palette.h Add grayscale EInk support 2020-10-26 16:59:59 -07:00
Shape.c Fix off-by-one error, simplify the logic, add comments 2020-09-10 21:34:03 -05:00
Shape.h Add dirty rectangle tracking to Shape display element 2020-09-04 14:15:15 -05:00
TileGrid.c use full_change instead of moved 2020-11-09 18:14:31 -06:00
TileGrid.h Bitpack bools in TileGrid and Group 2019-09-04 10:27:21 -07:00
__init__.c remove remaining top level displayio background check 2020-09-30 17:25:58 -05:00
__init__.h sharpmemory: Implement support for Sharp Memory Displays in framebufferio 2020-08-12 07:32:18 -05:00
area.h Add partial display update support. 2019-06-12 11:32:39 -07:00
display_core.c Add grayscale EInk support 2020-10-26 16:59:59 -07:00
display_core.h Merge pull request #3449 from FoamyGuy/sdcard_odb_fix 2020-10-01 10:13:13 -07:00
mipi_constants.h Minor tweaks based on feedback 2018-09-06 14:49:49 -07:00