mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-11 07:12:16 +00:00
- 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:
parent
cc8c20adf8
commit
5396e8d07d
2 changed files with 10 additions and 0 deletions
|
@ -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;
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue