[Scummvm-cvs-logs] scummvm master -> 097b52b66180712fd9e285dd62013bc9533b2be9

dreammaster dreammaster at scummvm.org
Mon Jul 20 02:14:02 CEST 2015


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:
097b52b661 SHERLOCK: RT: Fix loading saves where the screen is scrolled


Commit: 097b52b66180712fd9e285dd62013bc9533b2be9
    https://github.com/scummvm/scummvm/commit/097b52b66180712fd9e285dd62013bc9533b2be9
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2015-07-19T20:12:08-04:00

Commit Message:
SHERLOCK: RT: Fix loading saves where the screen is scrolled

Changed paths:
    engines/sherlock/scene.cpp



diff --git a/engines/sherlock/scene.cpp b/engines/sherlock/scene.cpp
index a335740..328bf64 100644
--- a/engines/sherlock/scene.cpp
+++ b/engines/sherlock/scene.cpp
@@ -1210,6 +1210,15 @@ void Scene::transitionToScene() {
 		// Standard info, so set it
 		people[HOLMES]._position = hSavedPos;
 		people[HOLMES]._sequenceNumber = hSavedFacing;
+
+		if (saves._justLoaded && IS_ROSE_TATTOO) {
+			Tattoo::TattooUserInterface &ui = *(Tattoo::TattooUserInterface *)_vm->_ui;
+
+			// For scrolling scenes, make sure the player is on-screen
+			ui._targetScroll.x = CLIP(people[HOLMES]._position.x / FIXED_INT_MULTIPLIER -
+				SHERLOCK_SCREEN_WIDTH / 8 - 250, 0, screen._backBuffer1.w() - SHERLOCK_SCREEN_WIDTH);
+			screen._currentScroll = ui._targetScroll;
+		}
 	} else {
 		// It's canimation information
 		cAnimNum = hSavedFacing - 101;
@@ -1283,7 +1292,7 @@ void Scene::transitionToScene() {
 			screen.fadeIntoScreen3DO(3);
 		}
 	} else {
-		screen.blitFrom(screen._backBuffer1);
+		screen.slamArea(screen._currentScroll.x, screen._currentScroll.y, SHERLOCK_SCREEN_WIDTH, SHERLOCK_SCREEN_HEIGHT);
 	}
 	screen.update();
 






More information about the Scummvm-git-logs mailing list