(svn r304) -Fix: [967096] fullscreen. New button 'Fullscreen' in 'Game Options' menu which lets you set fullscreen ingame.

This commit is contained in:
darkvater
2004-09-21 20:56:49 +00:00
parent 0ba58f25a4
commit 493df26058
5 changed files with 37 additions and 12 deletions

View File

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