diff options
author | Matthew Hoops | 2011-08-18 00:21:13 -0400 |
---|---|---|
committer | Matthew Hoops | 2011-08-18 00:21:13 -0400 |
commit | ced79d8f2931098e74d6c72ec7cca43eb24c765c (patch) | |
tree | 790dd6f35165daf41f8a90b1ce3148bbba6bac8f /engines | |
parent | 440ff92e0c6c461f36a06926c0eff8eab4d81765 (diff) | |
download | scummvm-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.cpp | 12 |
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(); } |