[Scummvm-git-logs] scummvm master -> e308605b2fe86a121049b5d45d1495b101610f4a
csnover
csnover at users.noreply.github.com
Sun Oct 15 22:52:38 CEST 2017
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
e308605b2f OPENPANDORA: Remove duplicated loadGFXMode code
Commit: e308605b2fe86a121049b5d45d1495b101610f4a
https://github.com/scummvm/scummvm/commit/e308605b2fe86a121049b5d45d1495b101610f4a
Author: Colin Snover (github.com at zetafleet.com)
Date: 2017-10-15T15:52:11-05:00
Commit Message:
OPENPANDORA: Remove duplicated loadGFXMode code
Changed paths:
backends/graphics/openpandora/op-graphics.cpp
backends/graphics/surfacesdl/surfacesdl-graphics.cpp
diff --git a/backends/graphics/openpandora/op-graphics.cpp b/backends/graphics/openpandora/op-graphics.cpp
index f4c9dc1..d6c1646 100644
--- a/backends/graphics/openpandora/op-graphics.cpp
+++ b/backends/graphics/openpandora/op-graphics.cpp
@@ -54,19 +54,6 @@ bool OPGraphicsManager::loadGFXMode() {
SDL_SetCursor(hiddenCursor);
_videoMode.fullscreen = true;
-
- _videoMode.overlayWidth = _videoMode.screenWidth * _videoMode.scaleFactor;
- _videoMode.overlayHeight = _videoMode.screenHeight * _videoMode.scaleFactor;
-
- if (_videoMode.screenHeight != 200 && _videoMode.screenHeight != 400)
- _videoMode.aspectRatioCorrection = false;
-
- if (_videoMode.aspectRatioCorrection)
- _videoMode.overlayHeight = real2Aspect(_videoMode.overlayHeight);
-
- _videoMode.hardwareWidth = _videoMode.screenWidth * _videoMode.scaleFactor;
- _videoMode.hardwareHeight = effectiveScreenHeight();
-
return SurfaceSdlGraphicsManager::loadGFXMode();
}
diff --git a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
index f025cfa..42870bb 100644
--- a/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
+++ b/backends/graphics/surfacesdl/surfacesdl-graphics.cpp
@@ -851,7 +851,7 @@ static void fixupResolutionForAspectRatio(AspectRatio desiredAspectRatio, int &w
bool SurfaceSdlGraphicsManager::loadGFXMode() {
_forceRedraw = true;
-#if !defined(__MAEMO__) && !defined(DINGUX) && !defined(GPH_DEVICE) && !defined(LINUXMOTO) && !defined(OPENPANDORA)
+#if !defined(__MAEMO__) && !defined(DINGUX) && !defined(GPH_DEVICE) && !defined(LINUXMOTO)
_videoMode.overlayWidth = _videoMode.screenWidth * _videoMode.scaleFactor;
_videoMode.overlayHeight = _videoMode.screenHeight * _videoMode.scaleFactor;
More information about the Scummvm-git-logs
mailing list