summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2017-03-23 18:07:04 +0000
committerpeter1138 <peter1138@openttd.org>2017-03-23 18:07:04 +0000
commitc5660b58d97044cd3bbb80a0a03102415020b385 (patch)
tree8da7c617d684690e8e77802f1f77b04b37e06423
parent0d8ae4d6f45e44995b673eb91157f978e95409e3 (diff)
downloadopenttd-c5660b58d97044cd3bbb80a0a03102415020b385.tar.xz
(svn r27819) -Fix (r26990): Update viewport sign dimensions when changing GUI zoom level.
-rw-r--r--src/settings_gui.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp
index 0652d1bd8..e20ac3307 100644
--- a/src/settings_gui.cpp
+++ b/src/settings_gui.cpp
@@ -36,6 +36,8 @@
#include "textfile_gui.h"
#include "stringfilter_type.h"
#include "querystring_gui.h"
+#include "signs_func.h"
+#include "station_func.h"
#include <vector>
@@ -532,6 +534,9 @@ struct GameOptionsWindow : Window {
_gui_zoom = (ZoomLevel)(ZOOM_LVL_OUT_4X - index);
UpdateCursorSize();
LoadStringWidthTable();
+ UpdateAllSignVirtCoords();
+ UpdateAllTownVirtCoords();
+ UpdateAllStationVirtCoords();
break;
case WID_GO_BASE_GRF_DROPDOWN: