src/events/SDL_events.c
changeset 10106 d240baef8248
parent 10060 739bc5c7d339
--- a/src/events/SDL_events.c	Mon Mar 07 08:22:55 2016 -0500
+++ b/src/events/SDL_events.c	Tue Mar 08 13:55:50 2016 -0800
@@ -435,8 +435,6 @@
         switch (SDL_PeepEvents(event, 1, SDL_GETEVENT, SDL_FIRSTEVENT, SDL_LASTEVENT)) {
         case -1:
             return 0;
-        case 1:
-            return 1;
         case 0:
             if (timeout == 0) {
                 /* Polling and no events, just return */
@@ -448,6 +446,9 @@
             }
             SDL_Delay(10);
             break;
+        default:
+            /* Has events */
+            return 1;
         }
     }
 }