summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-12-23 22:41:47 +0000
committerrubidium <rubidium@openttd.org>2009-12-23 22:41:47 +0000
commit2bb5e2de296991a7c54e2392e9c7b45813a74364 (patch)
tree703ebd65df311e8a62cd9c02e02eb4ef53210e78
parent8436c3d5fb7d79eae41dae6dd6ab91f042ba7efc (diff)
downloadopenttd-2bb5e2de296991a7c54e2392e9c7b45813a74364.tar.xz
(svn r18620) -Fix: possible deadlock with SDL and changing the resolution in-game
-rw-r--r--src/window.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/window.cpp b/src/window.cpp
index d35ec21ff..ea3b0bb98 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -2033,7 +2033,6 @@ static void HandleKeyScrolling()
static void MouseLoop(MouseClick click, int mousewheel)
{
- DecreaseWindowCounters();
HandlePlacePresize();
UpdateTileSelection();
@@ -2238,6 +2237,8 @@ void InputLoop()
free(w);
}
+ DecreaseWindowCounters();
+
if (_input_events_this_tick != 0) {
/* The input loop is called only once per GameLoop() - so we can clear the counter here */
_input_events_this_tick = 0;