removed unneeded additional screen redraws when window gets resized
authorHolger Schemel <info@artsoft.org>
Thu, 21 Apr 2016 22:53:11 +0000 (00:53 +0200)
committerHolger Schemel <info@artsoft.org>
Thu, 21 Apr 2016 22:53:11 +0000 (00:53 +0200)
src/events.c

index 675abca8f9b086f3ca01178a9de1142e548bb64a..9af9d45901658ab5bf8ecb87117ee5684a2ec9ed 100644 (file)
@@ -460,10 +460,13 @@ void HandleWindowEvent(WindowEvent *event)
        event_name, event->data1, event->data2);
 #endif
 
+#if 0
+  // (not needed, as the screen gets redrawn every 20 ms anyway)
   if (event->event == SDL_WINDOWEVENT_SIZE_CHANGED ||
       event->event == SDL_WINDOWEVENT_RESIZED ||
       event->event == SDL_WINDOWEVENT_EXPOSED)
     SDLRedrawWindow();
+#endif
 
   if (event->event == SDL_WINDOWEVENT_RESIZED && !video.fullscreen_enabled)
   {