- fixed: The Windows CreateFramebuffer methods need to check the desired screen size for an actual resolution when switching to fullscreen.

This commit is contained in:
Christoph Oelckers 2017-01-09 21:26:19 +01:00
parent cc8c20adf8
commit 5396e8d07d
2 changed files with 10 additions and 0 deletions

View File

@ -352,6 +352,11 @@ DFrameBuffer *Win32GLVideo::CreateFrameBuffer(int width, int height, bool fs, DF
{
Win32GLFrameBuffer *fb;
if (fs)
{
I_ClosestResolution(&width, &height, 32);
}
m_DisplayWidth = width;
m_DisplayHeight = height;
m_DisplayBits = 32;

View File

@ -641,6 +641,11 @@ DFrameBuffer *Win32Video::CreateFrameBuffer (int width, int height, bool fullscr
PalEntry flashColor;
int flashAmount;
if (fullscreen)
{
I_ClosestResolution(&width, &height, D3D ? 32 : 8);
}
LOG4 ("CreateFB %d %d %d %p\n", width, height, fullscreen, old);
if (old != NULL)