Crash couse SDL_GetRGB()

I’m not sure, can you tell me how to check this?

Honestly, that was me grasping at straws as I can’t figure out why your program is crashing. It shouldn’t be in 16 bit mode at all, and even if it was, the compiler should have been instructed to use 32 bit integers anyways.

Where and how big of a surface are you creating?