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/ds | |
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/ds')
-rw-r--r-- | backends/platform/ds/arm9/source/osystem_ds.cpp | 6 | ||||
-rw-r--r-- | backends/platform/ds/arm9/source/osystem_ds.h | 2 |
2 files changed, 6 insertions, 2 deletions
diff --git a/backends/platform/ds/arm9/source/osystem_ds.cpp b/backends/platform/ds/arm9/source/osystem_ds.cpp index 528e4df748..db274b723f 100644 --- a/backends/platform/ds/arm9/source/osystem_ds.cpp +++ b/backends/platform/ds/arm9/source/osystem_ds.cpp @@ -128,11 +128,17 @@ bool OSystem_DS::hasFeature(Feature f) { void OSystem_DS::setFeatureState(Feature f, bool enable) { if (f == kFeatureVirtualKeyboard) DS::setKeyboardIcon(enable); + else if (f == kFeatureCursorPalette) { + _disableCursorPalette = !enable; + refreshCursor(); + } } bool OSystem_DS::getFeatureState(Feature f) { if (f == kFeatureVirtualKeyboard) return DS::getKeyboardIcon(); + if (f == kFeatureCursorPalette) + return !_disableCursorPalette; return false; } diff --git a/backends/platform/ds/arm9/source/osystem_ds.h b/backends/platform/ds/arm9/source/osystem_ds.h index 4ab2e36322..ecb8011060 100644 --- a/backends/platform/ds/arm9/source/osystem_ds.h +++ b/backends/platform/ds/arm9/source/osystem_ds.h @@ -172,8 +172,6 @@ public: virtual void setCursorPalette(const byte *colors, uint start, uint num); - virtual void disableCursorPalette(bool dis) { _disableCursorPalette = dis; refreshCursor(); } - FilesystemFactory *getFilesystemFactory(); void refreshCursor(); |