From cab1d0a0bfa1bd4296ff0ab9c49c6f6f52960609 Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Fri, 10 Oct 2025 21:10:46 +0200 Subject: [PATCH] Fix SDL1 (non-8bit) support --- Source/utils/sdl_compat.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/utils/sdl_compat.h b/Source/utils/sdl_compat.h index 16e1b09e3..51c29bdab 100644 --- a/Source/utils/sdl_compat.h +++ b/Source/utils/sdl_compat.h @@ -408,7 +408,7 @@ inline bool SDLC_SetSurfaceAndPaletteColors(SDL_Surface *surface, SDL_Palette *p #endif // In SDL1, the surface always has its own distinct palette, so we need to // update it as well. - return SDL_SetPalette(surface, SDL_LOGPAL, colors, firstcolor, ncolors) == 0; + return SDL_SetPalette(surface, SDL_LOGPAL, colors, firstcolor, ncolors) != 0; #elif defined(USE_SDL3) if (!SDL_SetPaletteColors(palette, colors, firstcolor, ncolors)) return false; if (SDL_GetSurfacePalette(surface) != palette) {