summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorƁukasz Hryniuk <code@hryniuk.pl>2020-07-27 18:37:47 +0200
committerGitHub <noreply@github.com>2020-07-27 17:37:47 +0100
commit3effad0beabe4a7ce4ddf5b55bab787e2d93fea3 (patch)
treee507cf3924d6aa394e2321f4fde8e6f65922bcf1
parent452e1e332848cd0aa297a1d1eee0f23167313554 (diff)
downloadopenttd-3effad0beabe4a7ce4ddf5b55bab787e2d93fea3.tar.xz
Fix: Properly invalidate mouse-over station coverage highlight (#8263)
-rw-r--r--src/airport_gui.cpp1
-rw-r--r--src/dock_gui.cpp1
-rw-r--r--src/rail_gui.cpp1
-rw-r--r--src/road_gui.cpp1
4 files changed, 4 insertions, 0 deletions
diff --git a/src/airport_gui.cpp b/src/airport_gui.cpp
index 0e44357bf..464be03db 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 a5193a437..07c072d35 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 c0a3f4457..788189dcc 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 4c6e9df86..1e1f3e807 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: