summaryrefslogtreecommitdiff
path: root/src/main_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-12-13 19:33:07 +0000
committerrubidium <rubidium@openttd.org>2009-12-13 19:33:07 +0000
commit0e78fdb54cd4805e5470e071e42ce17804efd02e (patch)
treebe409f44d9d3541384a30f0f7994df7351fd0bec /src/main_gui.cpp
parent43abfbd426d7437535ecd8edf0d9c75990c6917b (diff)
downloadopenttd-0e78fdb54cd4805e5470e071e42ce17804efd02e.tar.xz
(svn r18486) -Fix: when switching language and you're getting a different font, recalculate the coordinates/sizes of the viewport signs. Otherwise it gets glitchy or abbreviated (in the smallmap)
Diffstat (limited to 'src/main_gui.cpp')
-rw-r--r--src/main_gui.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp
index 2f7682cd3..5ba32dfac 100644
--- a/src/main_gui.cpp
+++ b/src/main_gui.cpp
@@ -188,8 +188,6 @@ void ZoomInOrOutToCursorWindow(bool in, Window *w)
}
}
-extern void UpdateAllStationVirtCoords();
-
/** Widgets of the main window. */
enum MainWindowWidgets {
MW_VIEWPORT, ///< Main window viewport.
@@ -293,7 +291,7 @@ struct MainWindow : Window
break;
case '2' | WKC_ALT: // Update the coordinates of all station signs
- UpdateAllStationVirtCoords();
+ UpdateAllVirtCoords();
break;
#endif