fixed compilation error for SDL 1.2 target 4.1.1.0
authorHolger Schemel <info@artsoft.org>
Mon, 8 Oct 2018 06:05:57 +0000 (08:05 +0200)
committerHolger Schemel <info@artsoft.org>
Mon, 8 Oct 2018 06:05:57 +0000 (08:05 +0200)
src/events.c

index 9f18adb..37d7c0d 100644 (file)
@@ -349,6 +349,7 @@ void EventLoop(void)
 
 void ClearAutoRepeatKeyEvents(void)
 {
+#if defined(TARGET_SDL2)
   while (PendingEvent())
   {
     Event next_event;
@@ -362,6 +363,7 @@ void ClearAutoRepeatKeyEvents(void)
     else
       break;
   }
+#endif
 }
 
 void ClearEventQueue(void)