aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMatthew Hoops2011-08-18 00:21:13 -0400
committerMatthew Hoops2011-08-18 00:21:13 -0400
commitced79d8f2931098e74d6c72ec7cca43eb24c765c (patch)
tree790dd6f35165daf41f8a90b1ce3148bbba6bac8f /engines
parent440ff92e0c6c461f36a06926c0eff8eab4d81765 (diff)
downloadscummvm-rg350-ced79d8f2931098e74d6c72ec7cca43eb24c765c.tar.gz
scummvm-rg350-ced79d8f2931098e74d6c72ec7cca43eb24c765c.tar.bz2
scummvm-rg350-ced79d8f2931098e74d6c72ec7cca43eb24c765c.zip
SCUMM: Fix cursor palette in the HE80+ default cursor
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/cursor.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/engines/scumm/cursor.cpp b/engines/scumm/cursor.cpp
index 29b5eaedcb..6739282c9d 100644
--- a/engines/scumm/cursor.cpp
+++ b/engines/scumm/cursor.cpp
@@ -254,12 +254,14 @@ void ScummEngine_v80he::setDefaultCursor() {
}
}
- delete cursor;
+ if (_bytesPerPixel == 1) {
+ // Since white color position is not guaranteed
+ // we setup our own palette if supported by backend
+ CursorMan.disableCursorPalette(false);
+ CursorMan.replaceCursorPalette(palette, 0xfd, cursor->getPaletteCount());
+ }
- // Since white color position is not guaranteed
- // we setup our own palette if supported by backend
- CursorMan.disableCursorPalette(false);
- CursorMan.replaceCursorPalette(palette, 0xfd, cursor->getPaletteCount() * 3);
+ delete cursor;
updateCursor();
}