[Scummvm-git-logs] scummvm master -> 97b7a3849921bea612fefade381ece52e4fb1239

digitall 547637+digitall at users.noreply.github.com
Sat Nov 23 17:00:00 UTC 2019


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:
97b7a38499 LINUXMOTO: Further Replacement of old SurfaceSdlGraphicsManager APIs


Commit: 97b7a3849921bea612fefade381ece52e4fb1239
    https://github.com/scummvm/scummvm/commit/97b7a3849921bea612fefade381ece52e4fb1239
Author: D G Turner (digitall at scummvm.org)
Date: 2019-11-23T16:56:33Z

Commit Message:
LINUXMOTO: Further Replacement of old SurfaceSdlGraphicsManager APIs

Changed paths:
    backends/graphics/linuxmotosdl/linuxmotosdl-graphics.cpp


diff --git a/backends/graphics/linuxmotosdl/linuxmotosdl-graphics.cpp b/backends/graphics/linuxmotosdl/linuxmotosdl-graphics.cpp
index c6ac3fa..3fa1465 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() {




More information about the Scummvm-git-logs mailing list