Hello.
SDL_SetColorKey(Const, SDL_SRCCOLORKEY, SDL_MapRGB(Main::MainControl.SurfScreen->format, 255, 255, 255));
Process terminated with status 3 (0 minutes, 0 seconds).
Error is at this point in file. From my experience i know that status 3 in SDL is cause NULL Pointer.
Error may be at Main::MainControl.SurfScreen-format… MainControl is a public static class object… SurfScreen = SDL_SetVideoMode(Screen_Width, Screen_Height, Screen_BPP, SDL_HWSURFACE | SDL_DOUBLEBUF);
I know the 1st argument in SDL_MapRGB requires Pixel format but what em i suposed to pass? that i dont understand
i use my images at “32bit” without alpha all “.png” format.
Ani help is appreciated.