isle-portable/mortar
Christian Semmler aeda30bef6 MORTAR: wrap palette from loaded SDL3 surfaces
When loading BMP files via MORTAR_LoadBMP, SDL3 attaches a palette to
the surface internally. Previously, create_mortar_surface_from_sdl3
did not extract this palette, causing MORTAR_GetSurfacePalette to
return NULL for 8-bit palettized images.

Create an independent MORTAR palette and copy the colors from the
SDL3 surface's palette to make it accessible via MORTAR_GetSurfacePalette.
2026-02-09 20:30:27 +01:00
..
include/mortar MORTAR: wrap palette from loaded SDL3 surfaces 2026-02-09 20:30:27 +01:00
src MORTAR: wrap palette from loaded SDL3 surfaces 2026-02-09 20:30:27 +01:00