Skip to content

Commit eba9036

Browse files
- shorten sdl_waitevent error message
1 parent 83d751a commit eba9036

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

libraries/ZWidget/src/window/sdl2/sdl2displaywindow.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -289,11 +289,7 @@ void SDL2DisplayWindow::RunLoop()
289289
SDL_Event event;
290290
int result = SDL_WaitEvent(&event);
291291
if (result == 0)
292-
{
293-
fprintf(stderr, "SDL_WaitEvent failed: ");
294-
fprintf(stderr, SDL_GetError());
295-
fprintf(stderr, "\n");
296-
}
292+
fprintf(stderr, "SDL_WaitEvent failed: %s\n", SDL_GetError());
297293
DispatchEvent(event);
298294
}
299295
}

0 commit comments

Comments
 (0)