diff options
author | Torbjörn Andersson | 2006-06-13 09:48:46 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2006-06-13 09:48:46 +0000 |
commit | df4f95f805b698057381525ca43e5b03cc379633 (patch) | |
tree | c8e3bea526ac5d154f8e8db7fafdb5091463ab8a /engines | |
parent | 243e6b2d2711da4901110868c7bd8e4d9d20a74d (diff) | |
download | scummvm-rg350-df4f95f805b698057381525ca43e5b03cc379633.tar.gz scummvm-rg350-df4f95f805b698057381525ca43e5b03cc379633.tar.bz2 scummvm-rg350-df4f95f805b698057381525ca43e5b03cc379633.zip |
Let the [cursor] palette manager handle disableCursorPalette() too, to avoid
cursor glitch in at least some HE games which first set a cursor palette, and
then disable it. (The disabled palette would be re-enabled after dismissing the
GUI.)
svn-id: r23081
Diffstat (limited to 'engines')
-rw-r--r-- | engines/scumm/he/wiz_he.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/scumm/he/wiz_he.cpp b/engines/scumm/he/wiz_he.cpp index 5597741578..51763bff7f 100644 --- a/engines/scumm/he/wiz_he.cpp +++ b/engines/scumm/he/wiz_he.cpp @@ -24,6 +24,7 @@ #include "common/stdafx.h" #include "common/system.h" +#include "graphics/paletteman.h" #include "scumm/he/intern_he.h" #include "scumm/resource.h" #include "scumm/scumm.h" @@ -1526,8 +1527,7 @@ void Wiz::loadWizCursor(int resId) { _vm->setCursorHotspot(x, y); // Since we set up cursor palette for default cursor, disable it now - if (_vm->_system->hasFeature(OSystem::kFeatureCursorHasPalette)) - _vm->_system->disableCursorPalette(true); + PaletteMan.disableCursorPalette(true); free(cursor); } |