Fixed assertion when setting non 8-bit cursors in Myst, Masterpiece Edition.

svn-id: r47358
This commit is contained in:
Torbjörn Andersson 2010-01-18 18:45:30 +00:00
parent 4c9f323199
commit ec34e88f75

View File

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