From 17f8534e5a8d360590fdcbbae6109c563673c2c1 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Mon, 19 Dec 2005 00:19:12 +0000 Subject: [PATCH] (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. --- video/win32_v.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/video/win32_v.c b/video/win32_v.c index 76e67dede2..87533a551e 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);