aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/cursors.cpp
diff options
context:
space:
mode:
authorBastien Bouclet2011-05-15 17:22:09 +0200
committerBastien Bouclet2011-05-15 17:41:54 +0200
commitaf9dc7a29cd982f73fb425776e6c5c0071df6912 (patch)
tree2e12648f651fa017cf22abc6b0323e11ed35c0eb /engines/mohawk/cursors.cpp
parente0e28aaeb24983b0e0700b5e561f0d9c991bfb4a (diff)
downloadscummvm-rg350-af9dc7a29cd982f73fb425776e6c5c0071df6912.tar.gz
scummvm-rg350-af9dc7a29cd982f73fb425776e6c5c0071df6912.tar.bz2
scummvm-rg350-af9dc7a29cd982f73fb425776e6c5c0071df6912.zip
MOHAWK: Display a black screen while changing stack. Default to an empty cursor.
Diffstat (limited to 'engines/mohawk/cursors.cpp')
-rw-r--r--engines/mohawk/cursors.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/engines/mohawk/cursors.cpp b/engines/mohawk/cursors.cpp
index c01aef9581..f95084de8e 100644
--- a/engines/mohawk/cursors.cpp
+++ b/engines/mohawk/cursors.cpp
@@ -127,6 +127,13 @@ void MystCursorManager::hideCursor() {
}
void MystCursorManager::setCursor(uint16 id) {
+ // Zero means empty cursor
+ if (id == 0) {
+ static const byte emptyCursor = 0;
+ CursorMan.replaceCursor(&emptyCursor, 1, 1, 0, 0, 0);
+ return;
+ }
+
// Both Myst and Myst ME use the "MystBitmap" format for cursor images.
MohawkSurface *mhkSurface = _bmpDecoder->decodeImage(_vm->getResource(ID_WDIB, id));
Graphics::Surface *surface = mhkSurface->getSurface();