libsdl-org / sdl12-compat

An SDL-1.2 compatibility layer that uses SDL 2.0 behind the scenes.
Other
197 stars 40 forks source link

Use SDL_PIXELFORMAT_RGB888 for 24-bit surfaces #184

Closed sulix closed 2 years ago

sulix commented 2 years ago

We're currently using SDL_PIXELFORMAT_RGB24, which results in schismtracker being blue when resized (#183).

While it's possible that RGB888 is wrong on big-endian systems, it at least matches what we do for 16-bit (RGB565) and 32-bit (XRGB8888) formats, so if we're wrong, we'll at least be consistently wrong.