summaryrefslogtreecommitdiff
path: root/src/main_gui.cpp
diff options
context:
space:
mode:
authorPeterN <peter@fuzzle.org>2019-02-23 19:19:41 +0000
committerGitHub <noreply@github.com>2019-02-23 19:19:41 +0000
commit87ebfe1227ecc811a18d9b9c791e3e21da3f5eb2 (patch)
tree2792f87f0fbcc12ef020a7942ecd708011c54de0 /src/main_gui.cpp
parentf240f61fb2813a7cc3d2ad130477039b2a4701fd (diff)
downloadopenttd-87ebfe1227ecc811a18d9b9c791e3e21da3f5eb2.tar.xz
Fix #7004: Mark linkgraph dirty to be rebuilt on next draw call. (#7265)
Previously the linkgraph was rebuilt before the viewport extents were finalized.
Diffstat (limited to 'src/main_gui.cpp')
-rw-r--r--src/main_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp
index 43a73f6de..cdd383157 100644
--- a/src/main_gui.cpp
+++ b/src/main_gui.cpp
@@ -267,7 +267,7 @@ struct MainWindow : Window
return;
}
- this->viewport->overlay->RebuildCache();
+ this->viewport->overlay->SetDirty();
this->GetWidget<NWidgetBase>(WID_M_VIEWPORT)->SetDirty(this);
}