Fix compilation

This commit is contained in:
Sylvain 2022-12-27 17:25:31 +01:00
parent 59467ff063
commit ab0c5cf07d
No known key found for this signature in database
GPG Key ID: 5F87E02E5BC0939E
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ int main(int argc, char *argv[]) {
return 1;
}
screenSurface = SDL_GetWindowSurface(window);
SDL_FillRect(screenSurface, NULL, SDL_MapRGB(screenSurface->format, 0xff, 0xff, 0xff));
SDL_FillSurfaceRect(screenSurface, NULL, SDL_MapRGB(screenSurface->format, 0xff, 0xff, 0xff));
SDL_UpdateWindowSurface(window);
SDL_Delay(100);
SDL_DestroyWindow(window);