- shorten sdl_waitevent error message

This commit is contained in:
Rachael Alexanderson 2024-04-24 07:17:09 -04:00
parent 83d751af72
commit eba9036164
No known key found for this signature in database
GPG key ID: 26A8ACCE97115EE0

View file

@ -289,11 +289,7 @@ void SDL2DisplayWindow::RunLoop()
SDL_Event event;
int result = SDL_WaitEvent(&event);
if (result == 0)
{
fprintf(stderr, "SDL_WaitEvent failed: ");
fprintf(stderr, SDL_GetError());
fprintf(stderr, "\n");
}
fprintf(stderr, "SDL_WaitEvent failed: %s\n", SDL_GetError());
DispatchEvent(event);
}
}