mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 23:55:38 +00:00
(macOS) Fixed an issue with fullscreen padding.
This commit is contained in:
parent
386debf2fa
commit
a2183b9743
|
@ -135,8 +135,8 @@ bool Renderer::createWindow()
|
||||||
mWindowHeight = displayMode.h;
|
mWindowHeight = displayMode.h;
|
||||||
mPaddingWidth = displayMode.w - sScreenWidth;
|
mPaddingWidth = displayMode.w - sScreenWidth;
|
||||||
mPaddingHeight = displayMode.h - sScreenHeight;
|
mPaddingHeight = displayMode.h - sScreenHeight;
|
||||||
mScreenOffsetX -= mPaddingWidth / 2.0;
|
mScreenOffsetX -= mPaddingWidth / 2;
|
||||||
mScreenOffsetY -= mPaddingHeight / 2.0;
|
mScreenOffsetY -= mPaddingHeight / 2;
|
||||||
fullscreenPadding = true;
|
fullscreenPadding = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -259,6 +259,11 @@ bool Renderer::createWindow()
|
||||||
mWindowHeight *= scaleFactor;
|
mWindowHeight *= scaleFactor;
|
||||||
sScreenWidth *= scaleFactor;
|
sScreenWidth *= scaleFactor;
|
||||||
sScreenHeight *= scaleFactor;
|
sScreenHeight *= scaleFactor;
|
||||||
|
mPaddingWidth *= scaleFactor;
|
||||||
|
mPaddingHeight *= scaleFactor;
|
||||||
|
mScreenOffsetX *= scaleFactor;
|
||||||
|
mScreenOffsetY *= scaleFactor;
|
||||||
|
|
||||||
#else
|
#else
|
||||||
LOG(LogInfo) << "Display resolution: " << std::to_string(displayMode.w) << "x"
|
LOG(LogInfo) << "Display resolution: " << std::to_string(displayMode.w) << "x"
|
||||||
<< std::to_string(displayMode.h);
|
<< std::to_string(displayMode.h);
|
||||||
|
|
Loading…
Reference in a new issue