From df4f95f805b698057381525ca43e5b03cc379633 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Tue, 13 Jun 2006 09:48:46 +0000 Subject: 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 --- engines/scumm/he/wiz_he.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') 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); } -- cgit v1.2.3