mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-07-13 15:54:39 +01:00
parent
a48a5f0cc6
commit
c037722cb5
@ -3026,14 +3026,6 @@ void InputLoop()
|
|||||||
/* Process scheduled window deletion. */
|
/* Process scheduled window deletion. */
|
||||||
Window::DeleteClosedWindows();
|
Window::DeleteClosedWindows();
|
||||||
|
|
||||||
/* Handle sprite picker before any GUI interaction */
|
|
||||||
if (_newgrf_debug_sprite_picker.mode == SPM_REDRAW) {
|
|
||||||
/* We are done with the last draw-frame, so we know what sprites we
|
|
||||||
* clicked on. Reset the picker mode and invalidate the window. */
|
|
||||||
_newgrf_debug_sprite_picker.mode = SPM_NONE;
|
|
||||||
InvalidateWindowData(WC_SPRITE_ALIGNER, 0, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* HandleMouseEvents was already called for this tick */
|
/* HandleMouseEvents was already called for this tick */
|
||||||
HandleMouseEvents();
|
HandleMouseEvents();
|
||||||
}
|
}
|
||||||
@ -3117,6 +3109,13 @@ void UpdateWindows()
|
|||||||
NetworkDrawChatMessage();
|
NetworkDrawChatMessage();
|
||||||
/* Redraw mouse cursor in case it was hidden */
|
/* Redraw mouse cursor in case it was hidden */
|
||||||
DrawMouseCursor();
|
DrawMouseCursor();
|
||||||
|
|
||||||
|
if (_newgrf_debug_sprite_picker.mode == SPM_REDRAW) {
|
||||||
|
/* We are done with the last draw-frame, so we know what sprites we
|
||||||
|
* clicked on. Reset the picker mode and invalidate the window. */
|
||||||
|
_newgrf_debug_sprite_picker.mode = SPM_NONE;
|
||||||
|
InvalidateWindowData(WC_SPRITE_ALIGNER, 0, 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user