aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorFilippos Karapetis2012-02-13 04:03:05 +0200
committerFilippos Karapetis2012-02-13 04:03:05 +0200
commitfbb51fcd889ac5483d5aad5c0f62980c00bf65da (patch)
tree48d262cfa5227a3385148547cac90bf583bf38c0 /engines/sci
parent51ef8a78ccc556527d58ab552b7a8b589f2c7c27 (diff)
downloadscummvm-rg350-fbb51fcd889ac5483d5aad5c0f62980c00bf65da.tar.gz
scummvm-rg350-fbb51fcd889ac5483d5aad5c0f62980c00bf65da.tar.bz2
scummvm-rg350-fbb51fcd889ac5483d5aad5c0f62980c00bf65da.zip
SCI: Fix bug #3487092: "SCI: LB1: Magnifying glass cursor is grey"
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/graphics/cursor.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/sci/graphics/cursor.cpp b/engines/sci/graphics/cursor.cpp
index 50da48aaf3..a939b042a7 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;