diff options
author | Darkvater <Darkvater@openttd.org> | 2005-12-19 00:19:12 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2005-12-19 00:19:12 +0000 |
commit | 17f8534e5a8d360590fdcbbae6109c563673c2c1 (patch) | |
tree | bb1e3f4f6e2f4623972b0f583a84de3e4a332bff /video | |
parent | abc7e5e6590d9d125479b695d4106495783b6419 (diff) | |
download | openttd-17f8534e5a8d360590fdcbbae6109c563673c2c1.tar.xz |
(svn r3320) - Fix: FS#22 - Exiting with double size enabled saves wrong window size. Reset the window size to its true size upon exiting when double-size is active. Is set in ClientSizeChanged.
Diffstat (limited to 'video')
-rw-r--r-- | video/win32_v.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/video/win32_v.c b/video/win32_v.c index 76e67dede..87533a551 100644 --- a/video/win32_v.c +++ b/video/win32_v.c @@ -652,6 +652,11 @@ static const char *Win32GdiStart(const char * const *parm) static void Win32GdiStop(void) { if (_wnd.fullscreen) ChangeDisplaySettings(NULL, 0); + if (_double_size) { + _cur_resolution[0] *= 2; + _cur_resolution[1] *= 2; + } + MyShowCursor(true); DeleteObject(_wnd.gdi_palette); DeleteObject(_wnd.dib_sect); |