aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2010-01-18 18:45:30 +0000
committerTorbjörn Andersson2010-01-18 18:45:30 +0000
commitec34e88f7559dc946b75cb7793a848cee81cb3a9 (patch)
treea76bbd4a4ce77e9fbf9417b46c61b0f5f376d567
parent4c9f323199933aaf5dfd76b566bc0ff03f9bb0ff (diff)
downloadscummvm-rg350-ec34e88f7559dc946b75cb7793a848cee81cb3a9.tar.gz
scummvm-rg350-ec34e88f7559dc946b75cb7793a848cee81cb3a9.tar.bz2
scummvm-rg350-ec34e88f7559dc946b75cb7793a848cee81cb3a9.zip
Fixed assertion when setting non 8-bit cursors in Myst, Masterpiece Edition.
svn-id: r47358
-rw-r--r--engines/mohawk/graphics.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mohawk/graphics.cpp b/engines/mohawk/graphics.cpp
index df912564b7..832371eff3 100644
--- a/engines/mohawk/graphics.cpp
+++ b/engines/mohawk/graphics.cpp
@@ -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;
}