mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(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.
This commit is contained in:
parent
abc7e5e659
commit
17f8534e5a
@ -652,6 +652,11 @@ static const char *Win32GdiStart(const char * const *parm)
|
|||||||
static void Win32GdiStop(void)
|
static void Win32GdiStop(void)
|
||||||
{
|
{
|
||||||
if (_wnd.fullscreen) ChangeDisplaySettings(NULL, 0);
|
if (_wnd.fullscreen) ChangeDisplaySettings(NULL, 0);
|
||||||
|
if (_double_size) {
|
||||||
|
_cur_resolution[0] *= 2;
|
||||||
|
_cur_resolution[1] *= 2;
|
||||||
|
}
|
||||||
|
|
||||||
MyShowCursor(true);
|
MyShowCursor(true);
|
||||||
DeleteObject(_wnd.gdi_palette);
|
DeleteObject(_wnd.gdi_palette);
|
||||||
DeleteObject(_wnd.dib_sect);
|
DeleteObject(_wnd.dib_sect);
|
||||||
|
Loading…
Reference in New Issue
Block a user