mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-17 22:55:38 +00:00
Fixed an issue where the screensaver overlay did not render correctly when rotating the screen.
This commit is contained in:
parent
45e1a79f9e
commit
1e31423f3f
|
@ -284,14 +284,11 @@ void Screensaver::renderScreensaver()
|
|||
if (static_cast<int>(mState) >= STATE_FADE_IN_VIDEO) {
|
||||
if (mImageScreensaver->hasImage()) {
|
||||
mImageScreensaver->setOpacity(1.0f - mOpacity);
|
||||
glm::mat4 trans {Renderer::getIdentity()};
|
||||
mImageScreensaver->render(trans);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
mRenderer->setMatrix(trans);
|
||||
|
||||
if (isScreensaverActive()) {
|
||||
if (mScreensaverType == "slideshow") {
|
||||
if (mHasMediaFiles) {
|
||||
|
@ -299,6 +296,7 @@ void Screensaver::renderScreensaver()
|
|||
mRenderer->shaderPostprocessing(Renderer::Shader::SCANLINES);
|
||||
if (Settings::getInstance()->getBool("ScreensaverSlideshowGameInfo") &&
|
||||
mGameOverlay) {
|
||||
mRenderer->setMatrix(mRenderer->getIdentity());
|
||||
if (mGameOverlayRectangleCoords.size() == 4) {
|
||||
mRenderer->drawRect(
|
||||
mGameOverlayRectangleCoords[0], mGameOverlayRectangleCoords[1],
|
||||
|
@ -350,6 +348,7 @@ void Screensaver::renderScreensaver()
|
|||
mRenderer->shaderPostprocessing(shaders, videoParameters);
|
||||
|
||||
if (Settings::getInstance()->getBool("ScreensaverVideoGameInfo") && mGameOverlay) {
|
||||
mRenderer->setMatrix(mRenderer->getIdentity());
|
||||
if (mGameOverlayRectangleCoords.size() == 4) {
|
||||
mRenderer->drawRect(
|
||||
mGameOverlayRectangleCoords[0], mGameOverlayRectangleCoords[1],
|
||||
|
|
Loading…
Reference in a new issue