[Scummvm-cvs-logs] scummvm master -> 81ecdf4b51d24153df4e7cad1154f2b80e57759b

dreammaster dreammaster at scummvm.org
Sun Aug 23 23:00:37 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:
81ecdf4b51 SHERLOCK: SS: Rename mirror-related methods


Commit: 81ecdf4b51d24153df4e7cad1154f2b80e57759b
    https://github.com/scummvm/scummvm/commit/81ecdf4b51d24153df4e7cad1154f2b80e57759b
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2015-08-23T17:00:05-04:00

Commit Message:
SHERLOCK: SS: Rename mirror-related methods

Changed paths:
    engines/sherlock/scalpel/scalpel.cpp
    engines/sherlock/scalpel/scalpel.h
    engines/sherlock/scalpel/scalpel_scene.cpp



diff --git a/engines/sherlock/scalpel/scalpel.cpp b/engines/sherlock/scalpel/scalpel.cpp
index af9d613..fc8b1e6 100644
--- a/engines/sherlock/scalpel/scalpel.cpp
+++ b/engines/sherlock/scalpel/scalpel.cpp
@@ -1062,7 +1062,7 @@ void ScalpelEngine::startScene() {
 	_mapResult = _scene->_goToScene;
 }
 
-void ScalpelEngine::eraseMirror12() {
+void ScalpelEngine::eraseBrumwellMirror() {
 	Common::Point pt((*_people)[HOLMES]._position.x / FIXED_INT_MULTIPLIER, (*_people)[HOLMES]._position.y / FIXED_INT_MULTIPLIER);
 
 	// If player is in range of the mirror, then restore background from the secondary back buffer
@@ -1072,7 +1072,7 @@ void ScalpelEngine::eraseMirror12() {
 	}
 }
 
-void ScalpelEngine::doMirror12() {
+void ScalpelEngine::doBrumwellMirror() {
 	People &people = *_people;
 	Person &player = people[HOLMES];
 
@@ -1147,7 +1147,7 @@ void ScalpelEngine::doMirror12() {
 	}
 }
 
-void ScalpelEngine::flushMirror12() {
+void ScalpelEngine::flushBrumwellMirror() {
 	Common::Point pt((*_people)[HOLMES]._position.x / FIXED_INT_MULTIPLIER, (*_people)[HOLMES]._position.y / FIXED_INT_MULTIPLIER);
 
 	// If player is in range of the mirror, then draw the entire mirror area to the screen
diff --git a/engines/sherlock/scalpel/scalpel.h b/engines/sherlock/scalpel/scalpel.h
index 2635c2e..cb1cb20 100644
--- a/engines/sherlock/scalpel/scalpel.h
+++ b/engines/sherlock/scalpel/scalpel.h
@@ -113,17 +113,17 @@ public:
 	/**
 	 * Takes care of clearing the mirror in scene 12 (mansion drawing room), in case anything drew over it
 	 */
-	void eraseMirror12();
+	void eraseBrumwellMirror();
 
 	/**
 	 * Takes care of drawing Holme's reflection onto the mirror in scene 12 (mansion drawing room)
 	 */
-	void doMirror12();
+	void doBrumwellMirror();
 
 	/**
 	 * This clears the mirror in scene 12 (mansion drawing room) in case anything messed draw over it
 	 */
-	void flushMirror12();
+	void flushBrumwellMirror();
 };
 
 } // End of namespace Scalpel
diff --git a/engines/sherlock/scalpel/scalpel_scene.cpp b/engines/sherlock/scalpel/scalpel_scene.cpp
index e4c938f..999393f 100644
--- a/engines/sherlock/scalpel/scalpel_scene.cpp
+++ b/engines/sherlock/scalpel/scalpel_scene.cpp
@@ -226,7 +226,7 @@ void ScalpelScene::doBgAnim() {
 		}
 
 		if (_currentScene == DRAWING_ROOM)
-			vm.eraseMirror12();
+			vm.eraseBrumwellMirror();
 
 		// Restore the back buffer from the back buffer 2 in the changed area
 		Common::Rect bounds(people[HOLMES]._oldPosition.x, people[HOLMES]._oldPosition.y,
@@ -298,7 +298,7 @@ void ScalpelScene::doBgAnim() {
 	checkBgShapes();
 
 	if (_currentScene == DRAWING_ROOM)
-		vm.doMirror12();
+		vm.doBrumwellMirror();
 
 	// Draw all active shapes which are behind the person
 	for (uint idx = 0; idx < _bgShapes.size(); ++idx) {
@@ -408,7 +408,7 @@ void ScalpelScene::doBgAnim() {
 		}
 
 		if (_currentScene == DRAWING_ROOM)
-			vm.flushMirror12();
+			vm.flushBrumwellMirror();
 
 		for (uint idx = 0; idx < _bgShapes.size(); ++idx) {
 			Object &o = _bgShapes[idx];






More information about the Scummvm-git-logs mailing list