mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-16 14:50:17 +00:00
Fixed assertion when setting non 8-bit cursors in Myst, Masterpiece Edition.
svn-id: r47358
This commit is contained in:
parent
4c9f323199
commit
ec34e88f75
@ -238,7 +238,7 @@ void MystGraphics::changeCursor(uint16 cursor) {
|
||||
CursorMan.replaceCursor((byte *)data->_surface->pixels, data->_surface->w, data->_surface->h, hotspotX, hotspotY, 0);
|
||||
CursorMan.replaceCursorPalette(data->_palette, 0, 256);
|
||||
} else
|
||||
CursorMan.replaceCursor((byte *)data->_surface->pixels, data->_surface->w, data->_surface->h, hotspotX, hotspotY, 0xFFFFFFFF, 1, &_pixelFormat);
|
||||
CursorMan.replaceCursor((byte *)data->_surface->pixels, data->_surface->w, data->_surface->h, hotspotX, hotspotY, _pixelFormat.RGBToColor(255, 255, 255), 1, &_pixelFormat);
|
||||
|
||||
_vm->_needsUpdate = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user