From 3effad0beabe4a7ce4ddf5b55bab787e2d93fea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Hryniuk?= Date: Mon, 27 Jul 2020 18:37:47 +0200 Subject: [PATCH] Fix: Properly invalidate mouse-over station coverage highlight (#8263) --- src/airport_gui.cpp | 1 + src/dock_gui.cpp | 1 + src/rail_gui.cpp | 1 + src/road_gui.cpp | 1 + 4 files changed, 4 insertions(+) diff --git a/src/airport_gui.cpp b/src/airport_gui.cpp index 0e44357bfb..464be03db1 100644 --- a/src/airport_gui.cpp +++ b/src/airport_gui.cpp @@ -485,6 +485,7 @@ public: this->SetDirty(); if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP); this->UpdateSelectSize(); + SetViewportCatchmentStation(nullptr, true); break; case WID_AP_LAYOUT_DECREASE: diff --git a/src/dock_gui.cpp b/src/dock_gui.cpp index a5193a437a..07c072d35a 100644 --- a/src/dock_gui.cpp +++ b/src/dock_gui.cpp @@ -448,6 +448,7 @@ public: this->LowerWidget(_settings_client.gui.station_show_coverage + BDSW_LT_OFF); if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP); this->SetDirty(); + SetViewportCatchmentStation(nullptr, true); break; } } diff --git a/src/rail_gui.cpp b/src/rail_gui.cpp index c0a3f44574..788189dccf 100644 --- a/src/rail_gui.cpp +++ b/src/rail_gui.cpp @@ -1319,6 +1319,7 @@ public: this->SetWidgetLoweredState(WID_BRAS_HIGHLIGHT_ON, _settings_client.gui.station_show_coverage); if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP); this->SetDirty(); + SetViewportCatchmentStation(nullptr, true); break; case WID_BRAS_NEWST_LIST: { diff --git a/src/road_gui.cpp b/src/road_gui.cpp index 4c6e9df869..1e1f3e807f 100644 --- a/src/road_gui.cpp +++ b/src/road_gui.cpp @@ -1147,6 +1147,7 @@ struct BuildRoadStationWindow : public PickerWindowBase { this->LowerWidget(_settings_client.gui.station_show_coverage + WID_BROS_LT_OFF); if (_settings_client.sound.click_beep) SndPlayFx(SND_15_BEEP); this->SetDirty(); + SetViewportCatchmentStation(nullptr, true); break; default: