From: Holger Schemel Date: Thu, 21 Apr 2016 22:53:11 +0000 (+0200) Subject: removed unneeded additional screen redraws when window gets resized X-Git-Tag: 4.0.0.0-rc2~13 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=bbee12815791b4cdecc7307cf2fe68d8829b9876;p=rocksndiamonds.git removed unneeded additional screen redraws when window gets resized --- diff --git a/src/events.c b/src/events.c index 675abca8..9af9d459 100644 --- a/src/events.c +++ b/src/events.c @@ -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) {