summaryrefslogtreecommitdiff
path: root/main_gui.c
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2005-09-15 22:42:59 +0000
committerDarkvater <Darkvater@openttd.org>2005-09-15 22:42:59 +0000
commit80e2126cc657f21cd9a8a76e8d7c3927642ff0e5 (patch)
tree1cbb1baa1805c769ce2cfef99bffcfc5b23b9e6d /main_gui.c
parent3926d006b0a9f517098061b30879f2ff492cbafe (diff)
downloadopenttd-80e2126cc657f21cd9a8a76e8d7c3927642ff0e5.tar.xz
(svn r2955) Fix: make ottd start with the last resolution you had set (custom) (win32)
Diffstat (limited to 'main_gui.c')
-rw-r--r--main_gui.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/main_gui.c b/main_gui.c
index 86fec3d1e..88bceae17 100644
--- a/main_gui.c
+++ b/main_gui.c
@@ -2478,6 +2478,8 @@ void ShowVitalWindows(void)
void GameSizeChanged(void)
{
+ _cur_resolution[0] = _screen.width;
+ _cur_resolution[1] = _screen.height;
RelocateAllWindows(_screen.width, _screen.height);
ScreenSizeChanged();
MarkWholeScreenDirty();