Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/coelckers/gzdoom
Browse files Browse the repository at this point in the history
  • Loading branch information
dpjudas committed Dec 9, 2019
2 parents 49af4a4 + 5a578ba commit ab4c792
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/posix/sdl/sdlglvideo.cpp
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit ab4c792

Please sign in to comment.