summaryrefslogtreecommitdiff
path: root/video
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-12-19 00:19:12 +0000
committerDarkvater <darkvater@openttd.org>2005-12-19 00:19:12 +0000
commitbb90e51ac50e1b3adae5a5c93e9b84a6ff7ae0df (patch)
treebb1e3f4f6e2f4623972b0f583a84de3e4a332bff /video
parente744bbee5923efc53cd8c208ec447d16676ceec4 (diff)
downloadopenttd-bb90e51ac50e1b3adae5a5c93e9b84a6ff7ae0df.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.c5
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);