[Scummvm-cvs-logs] scummvm master -> fbb51fcd889ac5483d5aad5c0f62980c00bf65da

bluegr md5 at scummvm.org
Mon Feb 13 03:04:38 CET 2012


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:
fbb51fcd88 SCI: Fix bug #3487092: "SCI: LB1: Magnifying glass cursor is grey"


Commit: fbb51fcd889ac5483d5aad5c0f62980c00bf65da
    https://github.com/scummvm/scummvm/commit/fbb51fcd889ac5483d5aad5c0f62980c00bf65da
Author: Filippos Karapetis (md5 at scummvm.org)
Date: 2012-02-12T18:03:05-08:00

Commit Message:
SCI: Fix bug #3487092: "SCI: LB1: Magnifying glass cursor is grey"

Changed paths:
    engines/sci/graphics/cursor.cpp



diff --git a/engines/sci/graphics/cursor.cpp b/engines/sci/graphics/cursor.cpp
index 50da48a..a939b04 100644
--- a/engines/sci/graphics/cursor.cpp
+++ b/engines/sci/graphics/cursor.cpp
@@ -137,6 +137,11 @@ void GfxCursor::kernelSetShape(GuiResourceId resourceId) {
 	colorMapping[1] = _screen->getColorWhite(); // White is also hardcoded
 	colorMapping[2] = SCI_CURSOR_SCI0_TRANSPARENCYCOLOR;
 	colorMapping[3] = _palette->matchColor(170, 170, 170); // Grey
+	// Special case for the magnifier cursor in LB1 (bug #3487092).
+	// No other SCI0 game has a cursor resource of 1, so this is handled
+	// specifically for LB1.
+	if (resourceId == 1)
+		colorMapping[3] = _screen->getColorWhite();
 
 	// Seek to actual data
 	resourceData += 4;






More information about the Scummvm-git-logs mailing list