diff options
author | Max Horn | 2011-06-04 00:14:09 +0200 |
---|---|---|
committer | Max Horn | 2011-06-04 11:55:56 +0200 |
commit | ce32745d9c26a0b97dce6a137a46ff2004c7be02 (patch) | |
tree | bbf618410aa42cd69b0a140de7fb225a9f769ada /backends/platform/wii/osystem.cpp | |
parent | 6575cd195bef842697ea0b0ec80c3c1aa91f58e5 (diff) | |
download | scummvm-rg350-ce32745d9c26a0b97dce6a137a46ff2004c7be02.tar.gz scummvm-rg350-ce32745d9c26a0b97dce6a137a46ff2004c7be02.tar.bz2 scummvm-rg350-ce32745d9c26a0b97dce6a137a46ff2004c7be02.zip |
BACKENDS: Replace OSystem::disableCursorPalette by setFeatureState calls
Diffstat (limited to 'backends/platform/wii/osystem.cpp')
-rw-r--r-- | backends/platform/wii/osystem.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/backends/platform/wii/osystem.cpp b/backends/platform/wii/osystem.cpp index 02ebc02479..d2938284a9 100644 --- a/backends/platform/wii/osystem.cpp +++ b/backends/platform/wii/osystem.cpp @@ -188,6 +188,13 @@ void OSystem_Wii::setFeatureState(Feature f, bool enable) { case kFeatureAspectRatioCorrection: _arCorrection = enable; break; + case kFeatureCursorPalette: + _cursorPaletteDisabled = !enable; + if (_texMouse.palette && !enable) { + memcpy(_texMouse.palette, _cursorPalette, 256 * 2); + _cursorPaletteDirty = true; + } + break; default: break; } @@ -199,6 +206,8 @@ bool OSystem_Wii::getFeatureState(Feature f) { return _fullscreen; case kFeatureAspectRatioCorrection: return _arCorrection; + case kFeatureCursorPalette: + return !_cursorPaletteDisabled; default: return false; } |