diff options
Diffstat (limited to 'engines/scumm')
-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(); } |