forked from mirror/OpenTTD
(svn r304) -Fix: [967096] fullscreen. New button 'Fullscreen' in 'Game Options' menu which lets you set fullscreen ingame.
This commit is contained in:
3
win32.c
3
win32.c
@@ -498,6 +498,7 @@ static void MakeWindow(bool full_screen)
|
||||
error("CreateWindow failed");
|
||||
}
|
||||
}
|
||||
GameSizeChanged(); // invalidate all windows, force redraw
|
||||
}
|
||||
|
||||
static bool AllocateDibSection(int w, int h)
|
||||
@@ -727,7 +728,7 @@ static bool Win32GdiChangeRes(int w, int h)
|
||||
_wnd.width = _wnd.width_org = w;
|
||||
_wnd.height = _wnd.height_org = h;
|
||||
|
||||
MakeWindow(_wnd.fullscreen);
|
||||
MakeWindow(_fullscreen); // _wnd.fullscreen screws up ingame resolution switching
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user