mirror of https://github.com/OpenTTD/OpenTTD
(svn r18620) -Fix: possible deadlock with SDL and changing the resolution in-game
parent
8436c3d5fb
commit
2bb5e2de29
|
@ -2033,7 +2033,6 @@ static void HandleKeyScrolling()
|
||||||
|
|
||||||
static void MouseLoop(MouseClick click, int mousewheel)
|
static void MouseLoop(MouseClick click, int mousewheel)
|
||||||
{
|
{
|
||||||
DecreaseWindowCounters();
|
|
||||||
HandlePlacePresize();
|
HandlePlacePresize();
|
||||||
UpdateTileSelection();
|
UpdateTileSelection();
|
||||||
|
|
||||||
|
@ -2238,6 +2237,8 @@ void InputLoop()
|
||||||
free(w);
|
free(w);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DecreaseWindowCounters();
|
||||||
|
|
||||||
if (_input_events_this_tick != 0) {
|
if (_input_events_this_tick != 0) {
|
||||||
/* The input loop is called only once per GameLoop() - so we can clear the counter here */
|
/* The input loop is called only once per GameLoop() - so we can clear the counter here */
|
||||||
_input_events_this_tick = 0;
|
_input_events_this_tick = 0;
|
||||||
|
|
Loading…
Reference in New Issue