Commit Graph

2 Commits

Author SHA1 Message Date
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
Anonymous Maarten
bbd8f2e489 Introduce mortar layer 2026-02-09 18:33:47 +01:00