mirror of
https://github.com/open-simh/simh.git
synced 2026-01-13 23:37:13 +00:00
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
@ -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…
x
Reference in New Issue
Block a user