mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-29 23:33:00 +00:00
Merge branch 'master' of https://github.com/coelckers/gzdoom
This commit is contained in:
commit
ab4c792201
1 changed files with 10 additions and 2 deletions
|
@ -506,7 +506,11 @@ int SystemBaseFrameBuffer::GetClientWidth()
|
|||
|
||||
if (Priv::softpolyEnabled)
|
||||
{
|
||||
return SDL_GetWindowSurface(Priv::window)->w;
|
||||
if (polyrendertarget)
|
||||
SDL_GetRendererOutputSize(polyrendertarget, &width, nullptr);
|
||||
else
|
||||
SDL_GetWindowSize(Priv::window, &width, nullptr);
|
||||
return width;
|
||||
}
|
||||
|
||||
#ifdef HAVE_VULKAN
|
||||
|
@ -523,7 +527,11 @@ int SystemBaseFrameBuffer::GetClientHeight()
|
|||
|
||||
if (Priv::softpolyEnabled)
|
||||
{
|
||||
return SDL_GetWindowSurface(Priv::window)->h;
|
||||
if (polyrendertarget)
|
||||
SDL_GetRendererOutputSize(polyrendertarget, nullptr, &height);
|
||||
else
|
||||
SDL_GetWindowSize(Priv::window, nullptr, &height);
|
||||
return height;
|
||||
}
|
||||
|
||||
#ifdef HAVE_VULKAN
|
||||
|
|
Loading…
Reference in a new issue