Fix: Viewport drag tooltip flickering when dragging outside window
This commit is contained in:

committed by
Michael Lutz

parent
1529403584
commit
ae94b2d296
@@ -782,7 +782,7 @@ void GuiShowTooltips(Window *parent, StringID str, uint paramcount, const uint64
|
|||||||
{
|
{
|
||||||
DeleteWindowById(WC_TOOLTIPS, 0);
|
DeleteWindowById(WC_TOOLTIPS, 0);
|
||||||
|
|
||||||
if (str == STR_NULL) return;
|
if (str == STR_NULL || !_cursor.in_window) return;
|
||||||
|
|
||||||
new TooltipsWindow(parent, str, paramcount, params, close_tooltip);
|
new TooltipsWindow(parent, str, paramcount, params, close_tooltip);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user