1
0
Fork 0

(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.

release/0.4.5
Darkvater 2005-12-19 00:19:12 +00:00
parent e744bbee59
commit bb90e51ac5
1 changed files with 5 additions and 0 deletions

View File

@ -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);