aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/android/gfx.cpp
diff options
context:
space:
mode:
authordhewg2011-03-24 18:54:14 +0100
committerdhewg2011-03-24 18:56:54 +0100
commit397fd31a17f007a610aa7b673170983414efb5d5 (patch)
tree70598c3bb269dfa60bb2b18f7e956daeb1371865 /backends/platform/android/gfx.cpp
parent62f5c475f3bf7482526ce58bd90f37343ef523a6 (diff)
downloadscummvm-rg350-397fd31a17f007a610aa7b673170983414efb5d5.tar.gz
scummvm-rg350-397fd31a17f007a610aa7b673170983414efb5d5.tar.bz2
scummvm-rg350-397fd31a17f007a610aa7b673170983414efb5d5.zip
ANDROID: Cleanup
Diffstat (limited to 'backends/platform/android/gfx.cpp')
-rw-r--r--backends/platform/android/gfx.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/backends/platform/android/gfx.cpp b/backends/platform/android/gfx.cpp
index 5b03af9698..e32e2095bc 100644
--- a/backends/platform/android/gfx.cpp
+++ b/backends/platform/android/gfx.cpp
@@ -146,7 +146,6 @@ void OSystem_Android::initTexture(GLESBaseTexture **texture,
}
(*texture)->allocBuffer(width, height);
- (*texture)->fillBuffer(0);
}
#endif
@@ -253,7 +252,6 @@ void OSystem_Android::initOverlay() {
LOGI("overlay size is %ux%u", overlay_width, overlay_height);
_overlay_texture->allocBuffer(overlay_width, overlay_height);
- _overlay_texture->fillBuffer(0);
_overlay_texture->setDrawRect(0, 0,
_egl_surface_width, _egl_surface_height);
}
@@ -268,7 +266,6 @@ void OSystem_Android::initSize(uint width, uint height,
initTexture(&_game_texture, width, height, format);
#else
_game_texture->allocBuffer(width, height);
- _game_texture->fillBuffer(0);
#endif
updateScreenRect();
@@ -710,8 +707,8 @@ void OSystem_Android::setMouseCursor(const byte *buf, uint w, uint h,
assert(keycolor < 256);
byte *p = _mouse_texture_palette->palette() + _mouse_keycolor * 2;
-
WRITE_UINT16(p, READ_UINT16(p) | 1);
+
_mouse_keycolor = keycolor;
WRITE_UINT16(_mouse_texture_palette->palette() + keycolor * 2, 0);
}