aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorJody Northup2009-06-13 10:24:52 +0000
committerJody Northup2009-06-13 10:24:52 +0000
commit350dc4290fd5dd8f28af9e63713b48ef2c131f09 (patch)
treeaf86a10ccd48c275b362ca0407ddfd16180a8c0c /engines
parent2ee51a8fa189fc7817fd6d78533664ec870fca48 (diff)
downloadscummvm-rg350-350dc4290fd5dd8f28af9e63713b48ef2c131f09.tar.gz
scummvm-rg350-350dc4290fd5dd8f28af9e63713b48ef2c131f09.tar.bz2
scummvm-rg350-350dc4290fd5dd8f28af9e63713b48ef2c131f09.zip
Fixed cursor code to keep track of cursor formats so that ThemeEngine and/or GuiManager cursors will render properly over the game (on spacebar hit, for instance)
svn-id: r41491
Diffstat (limited to 'engines')
-rw-r--r--engines/scumm/cursor.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/scumm/cursor.cpp b/engines/scumm/cursor.cpp
index fcde07cbdf..30483a638c 100644
--- a/engines/scumm/cursor.cpp
+++ b/engines/scumm/cursor.cpp
@@ -112,6 +112,9 @@ void ScummEngine_v6::setCursorTransparency(int a) {
void ScummEngine::updateCursor() {
int transColor = (_game.heversion >= 80) ? 5 : 255;
+#ifdef ENABLE_16BIT
+ CursorMan.replaceCursorFormat(_system->getScreenFormat());
+#endif
CursorMan.replaceCursor(_grabbedCursor, _cursor.width, _cursor.height,
_cursor.hotspotX, _cursor.hotspotY,
(_game.platform == Common::kPlatformNES ? _grabbedCursor[63] : transColor),