projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7dd9d78
)
removed unneeded additional screen redraws when window gets resized
author
Holger Schemel
<info@artsoft.org>
Thu, 21 Apr 2016 22:53:11 +0000
(
00:53
+0200)
committer
Holger Schemel
<info@artsoft.org>
Thu, 21 Apr 2016 22:53:11 +0000
(
00:53
+0200)
src/events.c
patch
|
blob
|
history
diff --git
a/src/events.c
b/src/events.c
index 675abca8f9b086f3ca01178a9de1142e548bb64a..9af9d45901658ab5bf8ecb87117ee5684a2ec9ed 100644
(file)
--- 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)
{