diff options
author | fuzzard <fuzzard@users.noreply.github.com> | 2023-04-10 10:04:51 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-10 10:04:51 +0800 |
commit | a4122a28de508c6bf4472521ae5d58e59a69dbdc (patch) | |
tree | a3b427e43660b3f895dc950ab3d955175bd093bd | |
parent | ff1cafe99056f49c4fc9ba10011ed675995e8ee3 (diff) | |
parent | adc9db29526ee762d3aba0e5260507c572bbc691 (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.mm | 3 |
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) { |