I want to fill the screen with blue
.
This function works :
boxColor(screen, 0, 0, 640, 640, 0x0000ffff);
this one doesn't :
boxColor(screen, 0, 0, 640, 640, SDL_MapRGBA(screen->format, 0, 0, 255, 255));
What am I missing with the second version? How does one use SDL_MAPRGBA
in this context
?