src/events/SDL_events.c
changeset 10106 d240baef8248
parent 10060 739bc5c7d339
child 10488 3e61babccbbe
     1.1 --- a/src/events/SDL_events.c	Mon Mar 07 08:22:55 2016 -0500
     1.2 +++ b/src/events/SDL_events.c	Tue Mar 08 13:55:50 2016 -0800
     1.3 @@ -435,8 +435,6 @@
     1.4          switch (SDL_PeepEvents(event, 1, SDL_GETEVENT, SDL_FIRSTEVENT, SDL_LASTEVENT)) {
     1.5          case -1:
     1.6              return 0;
     1.7 -        case 1:
     1.8 -            return 1;
     1.9          case 0:
    1.10              if (timeout == 0) {
    1.11                  /* Polling and no events, just return */
    1.12 @@ -448,6 +446,9 @@
    1.13              }
    1.14              SDL_Delay(10);
    1.15              break;
    1.16 +        default:
    1.17 +            /* Has events */
    1.18 +            return 1;
    1.19          }
    1.20      }
    1.21  }