From c8b28ca45724d488a9f52ffd21b7f41c668664bb Mon Sep 17 00:00:00 2001 From: Matt <5415177+ZehMatt@users.noreply.github.com> Date: Sat, 10 Feb 2024 19:47:40 +0200 Subject: [PATCH] Fix #21330: Tooltips from dropdown widgets have the wrong position --- distribution/changelog.txt | 1 + src/openrct2-ui/input/MouseInput.cpp | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/distribution/changelog.txt b/distribution/changelog.txt index 928e672633..1a81b5cb5a 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -3,6 +3,7 @@ - Improved: [#21356] Resize the title bar when moving between displays with different scaling factors on Windows systems. - Fix: [#18963] Research table in parks from Loopy Landscapes is imported incorrectly. - Fix: [#20907] RCT1/AA scenarios use the 4-across train for the Inverted Roller Coaster. +- Fix: [#21330] Tooltips from dropdown widgets have the wrong position. - Fix: [#21332] Mini Helicopters and Monorail Cycles ride types are swapped in research within RCT1 scenarios. - Fix: [#21347] Too many options are hidden if the platform has no file picker. - Fix: [OpenSFX#18] B&M Roar sound effect not looping correctly. diff --git a/src/openrct2-ui/input/MouseInput.cpp b/src/openrct2-ui/input/MouseInput.cpp index 73016f11da..b31e8c2e18 100644 --- a/src/openrct2-ui/input/MouseInput.cpp +++ b/src/openrct2-ui/input/MouseInput.cpp @@ -1463,6 +1463,11 @@ void InputStateWidgetPressed( } return; } + else if (gDropdownIsColour) + { + // This is ordinarily covered in InputWidgetOver but the dropdown with colours is a special case. + InputUpdateTooltip(w, widgetIndex, screenCoords); + } gDropdownHighlightedIndex = -1; WindowInvalidateByClass(WindowClass::Dropdown);