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 9f18adbe8b413dce59899fe9ac17cb35cec9243a..37d7c0d72b05b7ef907324589db997b353d54312 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)