Changeset - r2773:14c54e8fd3a7
[Not reviewed]
master
0 1 0
Darkvater - 18 years ago 2005-12-19 00:19:12
darkvater@openttd.org
(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.
1 file changed with 5 insertions and 0 deletions:
0 comments (0 inline, 0 general)
video/win32_v.c
Show inline comments
 
@@ -652,6 +652,11 @@ static const char *Win32GdiStart(const c
 
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);
0 comments (0 inline, 0 general)