mirror of
https://github.com/simh/simh.git
synced 2026-01-25 19:56:25 +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:
committed by
Mark Pizzolato
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) {
|
||||
|
||||
Reference in New Issue
Block a user