- implemented fullscreen toggle for Windows and fixed the window position saver so that it can save and restore the window size as well.

This code was written when the window wasn't resizable and didn't actually manage to restore it before. With today's changes this design flaw caused totally incorrect results.
This commit is contained in:
Christoph Oelckers 2018-06-17 23:33:22 +02:00
commit af0e11f377
2 changed files with 21 additions and 18 deletions

View file

@ -675,7 +675,7 @@ void D_Display ()
if (setmodeneeded)
{
screen->ToggleFullscreen(fullscreen);
setsizeneeded = true;
V_OutputResized(screen->GetWidth(), screen->GetHeight());
setmodeneeded = false;
}