From 2bb5e2de296991a7c54e2392e9c7b45813a74364 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 23 Dec 2009 22:41:47 +0000 Subject: [PATCH] (svn r18620) -Fix: possible deadlock with SDL and changing the resolution in-game --- src/window.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/window.cpp b/src/window.cpp index d35ec21ffc..ea3b0bb982 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;