mirror of
https://github.com/simh/simh.git
synced 2026-02-08 01:02:05 +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);
|
vid_beep_setup (400, 660);
|
||||||
|
|
||||||
|
memset (&event, 0, sizeof (event));
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
int status = SDL_WaitEvent (&event);
|
int status = SDL_WaitEvent (&event);
|
||||||
if (status == 1) {
|
if (status == 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user