Mercurial > hg > openttd
changeset 2773:af808da3e2b5 draft
(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.
author | Darkvater <Darkvater@openttd.org> |
---|---|
date | Mon, 19 Dec 2005 00:19:12 +0000 |
parents | 197339083d52 |
children | 4f08dd288731 |
files | video/win32_v.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/video/win32_v.c +++ b/video/win32_v.c @@ -652,6 +652,11 @@ 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);