The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.
SDL
Simple Directmedia Layer Forums
8bit Grayscale image not displayed correctly
Sascha Schwarz
Joined: 28 Apr 2015
Posts: 5
Location: Germany
Posted: Tue May 05, 2015 11:25 am
Hi all.
I am having trouble displaying this image:
I am creating a texture (SDL2-image 2.0.0) and displaying it (SDL2-2.0.3) and was expecting SDL to "Just Do the Right Thing"(tm).
But somehow/somewhere the colors get changed and I am ending up with an odd looking yellowish/white gradient.
I can get it to work when I change my png from 8-bit grayscale to something else, but shouldn't it work with the picture at hand?