SCUMM: Fix cursor palette in the HE80+ default cursor

This commit is contained in:
Matthew Hoops 2011-08-18 00:21:13 -04:00
parent 440ff92e0c
commit ced79d8f29

View File

@ -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();
}