changeset 14075:57d4a736f1f2 draft

(svn r18620) -Fix: possible deadlock with SDL and changing the resolution in-game
author rubidium <rubidium@openttd.org>
date Wed, 23 Dec 2009 22:41:47 +0000
parents 9c9f0b931912
children 1ac8d59fb2f3
files src/window.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -2033,7 +2033,6 @@
 
 static void MouseLoop(MouseClick click, int mousewheel)
 {
-	DecreaseWindowCounters();
 	HandlePlacePresize();
 	UpdateTileSelection();
 
@@ -2238,6 +2237,8 @@
 		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;