summaryrefslogtreecommitdiff
path: root/src/window_gui.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2019-03-20 01:21:10 +0000
committerPeterN <peter@fuzzle.org>2019-03-20 23:00:32 +0000
commit4da83d2f661691b40eb53591d2a998596f5d16a0 (patch)
tree2e0910912bf2b08f8e713a4690a4bd11edfed2b8 /src/window_gui.h
parente3c639a09f1d2251477f69496120d057dd8320a9 (diff)
downloadopenttd-4da83d2f661691b40eb53591d2a998596f5d16a0.tar.xz
Fix #7386: Measurement tooltip for tunnels, aqueducts & docks did not display or flickered.
Measurement tooltip was auto-closed as the hover/right-click test for tooltips was not satisfied in this case. This is fixed by keeping the tooltip visible and instead explicitly closing the tooltip when the PlaceObject is cancelled/completed.
Diffstat (limited to 'src/window_gui.h')
-rw-r--r--src/window_gui.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window_gui.h b/src/window_gui.h
index 0abf79cca..05a2b3c5a 100644
--- a/src/window_gui.h
+++ b/src/window_gui.h
@@ -873,8 +873,8 @@ void RelocateAllWindows(int neww, int newh);
/* misc_gui.cpp */
enum TooltipCloseCondition {
TCC_RIGHT_CLICK,
- TCC_LEFT_CLICK,
TCC_HOVER,
+ TCC_NONE,
};
void GuiShowTooltips(Window *parent, StringID str, uint paramcount = 0, const uint64 params[] = NULL, TooltipCloseCondition close_tooltip = TCC_HOVER);