Original Post
What is the syntax for this function? The code below compiles but when I create a button I get an access violation on color = SDL_MapRGB(palette, 52 ,52 ,52);
Uint32 color;
SDL_PixelFormat *palette;
color = SDL_MapRGB(palette, 52, 52, 52);
SDL_FillRect(surface, &menu, color);