mirror of
https://github.com/isledecomp/isle-portable.git
synced 2026-02-28 05:47:38 +00:00
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. |
||
|---|---|---|
| .. | ||
| include/mortar | ||
| src | ||