aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/android/gfx.cpp
diff options
context:
space:
mode:
authorMax Horn2011-06-04 00:14:09 +0200
committerMax Horn2011-06-04 11:55:56 +0200
commitce32745d9c26a0b97dce6a137a46ff2004c7be02 (patch)
treebbf618410aa42cd69b0a140de7fb225a9f769ada /backends/platform/android/gfx.cpp
parent6575cd195bef842697ea0b0ec80c3c1aa91f58e5 (diff)
downloadscummvm-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/android/gfx.cpp')
-rw-r--r--backends/platform/android/gfx.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/backends/platform/android/gfx.cpp b/backends/platform/android/gfx.cpp
index 89e918a34e..b8a9e74437 100644
--- a/backends/platform/android/gfx.cpp
+++ b/backends/platform/android/gfx.cpp
@@ -801,12 +801,10 @@ void OSystem_Android::setCursorPalette(const byte *colors,
_use_mouse_palette = true;
}
-void OSystem_Android::disableCursorPalette(bool disable) {
- ENTER("%d", disable);
-
+void OSystem_Android::disableCursorPalette() {
// when disabling the cursor palette, and we're running a clut8 game,
// it expects the game palette to be used for the cursor
- if (disable && _game_texture->hasPalette()) {
+ if (_game_texture->hasPalette()) {
const byte *src = _game_texture->palette_const();
byte *dst = _mouse_texture_palette->palette();
@@ -825,8 +823,6 @@ void OSystem_Android::disableCursorPalette(bool disable) {
byte *p = _mouse_texture_palette->palette() + _mouse_keycolor * 2;
WRITE_UINT16(p, READ_UINT16(p) & ~1);
}
-
- _use_mouse_palette = !disable;
}
#endif