aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorJohannes Schickel2014-04-01 18:13:29 +0200
committerJohannes Schickel2014-04-01 18:13:29 +0200
commit67791fa91641bbea12313e4aca4ef57bac24b853 (patch)
tree55e838a3b734024400291c6bed4e6d02a2eb5294 /backends
parentee9ad6cfb5a75e1bf76a49b7d2bd36ea76dd7994 (diff)
parent98867825bafee4580f646c74b10c269dc8ccb663 (diff)
downloadscummvm-rg350-67791fa91641bbea12313e4aca4ef57bac24b853.tar.gz
scummvm-rg350-67791fa91641bbea12313e4aca4ef57bac24b853.tar.bz2
scummvm-rg350-67791fa91641bbea12313e4aca4ef57bac24b853.zip
Merge pull request #453 from lordhoto/android-16bit-cursor
ANDROID: Fix color key handling for 16bit mouse cursors.
Diffstat (limited to 'backends')
-rw-r--r--backends/platform/android/gfx.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/platform/android/gfx.cpp b/backends/platform/android/gfx.cpp
index 92293493f0..b71a98338b 100644
--- a/backends/platform/android/gfx.cpp
+++ b/backends/platform/android/gfx.cpp
@@ -759,8 +759,8 @@ void OSystem_Android::setMouseCursor(const void *buf, uint w, uint h,
uint16 *d = (uint16 *)tmp;
for (uint16 y = 0; y < h; ++y, d += pitch / 2 - w)
for (uint16 x = 0; x < w; ++x, d++)
- if (*s++ != (keycolor & 0xffff))
- *d |= 1;
+ if (*s++ == (keycolor & 0xffff))
+ *d = 0;
_mouse_texture->updateBuffer(0, 0, w, h, tmp, pitch);