[Scummvm-git-logs] scummvm master -> f00980500ebee6b89bfbb9bba8ec9a905d7b3b6c

dreammaster noreply at scummvm.org
Sat Dec 11 04:08:47 UTC 2021


This automated email contains information about 3 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
70508052c6 SHERLOCK: Fix inventory redraw after looking at room object (#10836)
7de71dd342 SHERLOCK: Fix only first page of description being shown
f00980500e NEWS: Mention inventory glitch looking at items with inventory open


Commit: 70508052c6add99ebd4a2b2ad0639c7bb9fa864a
    https://github.com/scummvm/scummvm/commit/70508052c6add99ebd4a2b2ad0639c7bb9fa864a
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2021-12-10T20:00:40-08:00

Commit Message:
SHERLOCK: Fix inventory redraw after looking at room object (#10836)

Instead of using _backBuffer1 directly, we should draw the inventory
icons to the current back buffer. This makes a difference in cases where
the engine has activated back buffer 2. Referring to _backBuffer2
directly should still be ok. This fixes inventory redrawing after
examining a room object.

Changed paths:
    engines/sherlock/scalpel/scalpel_inventory.cpp


diff --git a/engines/sherlock/scalpel/scalpel_inventory.cpp b/engines/sherlock/scalpel/scalpel_inventory.cpp
index 07659b41f2..8a86ec6546 100644
--- a/engines/sherlock/scalpel/scalpel_inventory.cpp
+++ b/engines/sherlock/scalpel/scalpel_inventory.cpp
@@ -251,7 +251,7 @@ void ScalpelInventory::putInv(InvSlamMode slamIt) {
 	// Iterate through displaying up to 6 objects at a time
 	for (int idx = _invIndex; idx < _holdings && (idx - _invIndex) < (int)_invShapes.size(); ++idx) {
 		int itemNum = idx - _invIndex;
-		Surface &bb = slamIt == SLAM_SECONDARY_BUFFER ? screen._backBuffer2 : screen._backBuffer1;
+		Surface &bb = (slamIt == SLAM_SECONDARY_BUFFER) ? screen._backBuffer2 : *screen.getBackBuffer();
 		Common::Rect r(8 + itemNum * 52, 165, 51 + itemNum * 52, 194);
 
 		// Draw the background


Commit: 7de71dd342da2b4943df83ec5375b1c94c86620f
    https://github.com/scummvm/scummvm/commit/7de71dd342da2b4943df83ec5375b1c94c86620f
Author: Torbjörn Andersson (eriktorbjorn at users.sourceforge.net)
Date: 2021-12-10T20:00:41-08:00

Commit Message:
SHERLOCK: Fix only first page of description being shown

When examining a room object with a description that spans multiple
pages, only the first page was shown if the inventory was open at the
same time. This bug happens in the original too. Hopefully fixing it
does not cause any unwanted side effects.

Changed paths:
    engines/sherlock/scalpel/scalpel_user_interface.cpp


diff --git a/engines/sherlock/scalpel/scalpel_user_interface.cpp b/engines/sherlock/scalpel/scalpel_user_interface.cpp
index e478f97d53..1726c500d4 100644
--- a/engines/sherlock/scalpel/scalpel_user_interface.cpp
+++ b/engines/sherlock/scalpel/scalpel_user_interface.cpp
@@ -1266,12 +1266,13 @@ void ScalpelUserInterface::doLookControl() {
 	_keyboardInput = (_keyPress != '\0');
 
 	if (events._released || events._rightReleased || _keyboardInput) {
+		// Is there any remaining text to display?
+		if (!_descStr.empty()) {
+			printObjectDesc(_descStr, false);
+		}
 		// Is an inventory object being looked at?
-		if (!_invLookFlag) {
-			// Is there any remaining text to display?
-			if (!_descStr.empty()) {
-				printObjectDesc(_descStr, false);
-			} else if (!_lookHelp) {
+		else if (!_invLookFlag) {
+			if (!_lookHelp) {
 				// Need to close the window and depress the Look button
 				Common::Point pt(MENU_POINTS[0][0], MENU_POINTS[0][1]);
 				offsetButton3DO(pt, 0);


Commit: f00980500ebee6b89bfbb9bba8ec9a905d7b3b6c
    https://github.com/scummvm/scummvm/commit/f00980500ebee6b89bfbb9bba8ec9a905d7b3b6c
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2021-12-10T20:03:56-08:00

Commit Message:
NEWS: Mention inventory glitch looking at items with inventory open

Changed paths:
    NEWS.md


diff --git a/NEWS.md b/NEWS.md
index 7014018700..2e8b2b3513 100644
--- a/NEWS.md
+++ b/NEWS.md
@@ -45,6 +45,7 @@ For a more comprehensive changelog of the latest experimental code, see:
    - Fix bell pull sound in Serrated Scalpel.
    - Fix inventory not updating in Serrated Scalpel after examining watch.
    - Fix fog overlay at Cleopatra's Needle in Rose Tattoo.
+   - Fix graphic issues in Serrated Scalpel looking at items whilst inventory is open.
 
  Xeen:
    - Fix crash on startup loading constants from xeen.ccs.




More information about the Scummvm-git-logs mailing list