Is there a way to change the color of an empty SDL window to white instead of black? I do not want to change the default settings. I am just trying to change it for this particular program that I am writing. I do not want to use the image file, but if necessary, I will.
I don't know if that matters, but I'm using SDL_SetVideoMode()
My code is very simple:
if (SDL_Init(SDL_INIT_EVERYTHING) == -1) return 1; SDL_Surface * screen = NULL; screen = SDL_SetVideoMode(width, height, bpp, SDL_SWSURFACE); SDL_FillRect(screen, NULL, 0xFFFFFF); SDL_Delay(3000);
source share