aboutsummaryrefslogtreecommitdiff
path: root/backends/graphics/linuxmotosdl
diff options
context:
space:
mode:
authorD G Turner2019-11-23 16:56:33 +0000
committerD G Turner2019-11-23 16:56:33 +0000
commit97b7a3849921bea612fefade381ece52e4fb1239 (patch)
tree73d84b1eef267089087c4a6e8f8071fa0b2153cc /backends/graphics/linuxmotosdl
parente515998da0e3d50535bd0a0d5cf5c0289cc1b651 (diff)
downloadscummvm-rg350-97b7a3849921bea612fefade381ece52e4fb1239.tar.gz
scummvm-rg350-97b7a3849921bea612fefade381ece52e4fb1239.tar.bz2
scummvm-rg350-97b7a3849921bea612fefade381ece52e4fb1239.zip
LINUXMOTO: Further Replacement of old SurfaceSdlGraphicsManager APIs
Diffstat (limited to 'backends/graphics/linuxmotosdl')
-rw-r--r--backends/graphics/linuxmotosdl/linuxmotosdl-graphics.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/backends/graphics/linuxmotosdl/linuxmotosdl-graphics.cpp b/backends/graphics/linuxmotosdl/linuxmotosdl-graphics.cpp
index c6ac3fa88d..3fa1465aac 100644
--- a/backends/graphics/linuxmotosdl/linuxmotosdl-graphics.cpp
+++ b/backends/graphics/linuxmotosdl/linuxmotosdl-graphics.cpp
@@ -148,7 +148,7 @@ bool LinuxmotoSdlGraphicsManager::loadGFXMode() {
_videoMode.overlayHeight = real2Aspect(_videoMode.overlayHeight);
_videoMode.hardwareWidth = _videoMode.screenWidth * _videoMode.scaleFactor;
- _videoMode.hardwareHeight = effectiveScreenHeight();
+ _videoMode.hardwareHeight = _videoMode.hardwareHeight;
}
return SurfaceSdlGraphicsManager::loadGFXMode();
@@ -294,7 +294,7 @@ void LinuxmotoSdlGraphicsManager::internUpdateScreen() {
// Add the area covered by the mouse cursor to the list of dirty rects if
// we have to redraw the mouse.
- if (_mouseNeedsRedraw)
+ if (_cursorNeedsRedraw)
undrawMouse();
#ifdef USE_OSD
@@ -311,7 +311,7 @@ void LinuxmotoSdlGraphicsManager::internUpdateScreen() {
}
// Only draw anything if necessary
- if (_numDirtyRects > 0 || _mouseNeedsRedraw) {
+ if (_numDirtyRects > 0 || _cursorNeedsRedraw) {
SDL_Rect *r;
SDL_Rect dst;
uint32 srcPitch, dstPitch;
@@ -403,7 +403,7 @@ void LinuxmotoSdlGraphicsManager::internUpdateScreen() {
// This is necessary if shaking is active.
if (_forceRedraw) {
_dirtyRectList[0].y = 0;
- _dirtyRectList[0].h = (_videoMode.mode == GFX_HALF) ? effectiveScreenHeight()/2 : effectiveScreenHeight();
+ _dirtyRectList[0].h = (_videoMode.mode == GFX_HALF) ? _videoMode.hardwareHeight / 2 : _videoMode.hardwareHeight;
}
drawMouse();
@@ -418,7 +418,7 @@ void LinuxmotoSdlGraphicsManager::internUpdateScreen() {
_numDirtyRects = 0;
_forceRedraw = false;
- _mouseNeedsRedraw = false;
+ _cursorNeedsRedraw = false;
}
void LinuxmotoSdlGraphicsManager::showOverlay() {