aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfuzzard <fuzzard@users.noreply.github.com>2023-04-10 10:04:51 +0800
committerGitHub <noreply@github.com>2023-04-10 10:04:51 +0800
commita4122a28de508c6bf4472521ae5d58e59a69dbdc (patch)
treea3b427e43660b3f895dc950ab3d955175bd093bd
parentff1cafe99056f49c4fc9ba10011ed675995e8ee3 (diff)
parentadc9db29526ee762d3aba0e5260507c572bbc691 (diff)
Merge pull request #23125 from enen92/edgeinsets_macos_setfullscree
[macOS][nativewindowing] Take guiInsets into consideration when reset…
-rw-r--r--xbmc/windowing/osx/OpenGL/WinSystemOSXGL.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/xbmc/windowing/osx/OpenGL/WinSystemOSXGL.mm b/xbmc/windowing/osx/OpenGL/WinSystemOSXGL.mm
index 92d9670172..d6f66fa1de 100644
--- a/xbmc/windowing/osx/OpenGL/WinSystemOSXGL.mm
+++ b/xbmc/windowing/osx/OpenGL/WinSystemOSXGL.mm
@@ -60,7 +60,8 @@ bool CWinSystemOSXGL::ResizeWindow(int newWidth, int newHeight, int newLeft, int
bool CWinSystemOSXGL::SetFullScreen(bool fullScreen, RESOLUTION_INFO& res, bool blankOtherDisplays)
{
CWinSystemOSX::SetFullScreen(fullScreen, res, blankOtherDisplays);
- CRenderSystemGL::ResetRenderSystem(res.iWidth, res.iHeight);
+ CRenderSystemGL::ResetRenderSystem(res.iWidth - res.guiInsets.right - res.guiInsets.left,
+ res.iHeight - res.guiInsets.top - res.guiInsets.bottom);
if (m_bVSync)
{