VIDEO: Initialize event structure to 0 before waiting for events
No clear reason to do this, given the SDL code path in the call to SDL_WaitEvent, but initializing at startup adds no overhead and was reported to help some debugging activities.
This commit is contained in:
parent
885277e14f
commit
10f3a9dea3
1 changed files with 2 additions and 0 deletions
|
@ -448,6 +448,8 @@ if (vid_main_thread_handle == NULL) {
|
|||
|
||||
vid_beep_setup (400, 660);
|
||||
|
||||
memset (&event, 0, sizeof (event));
|
||||
|
||||
while (1) {
|
||||
int status = SDL_WaitEvent (&event);
|
||||
if (status == 1) {
|
||||
|
|
Loading…
Add table
Reference in a new issue