diff options
author | Johannes Schickel | 2014-03-26 00:43:38 +0100 |
---|---|---|
committer | Johannes Schickel | 2014-03-26 00:43:38 +0100 |
commit | 9fab467d58f627c704910a62f533c53e1674aee7 (patch) | |
tree | fdf7f04f7da7e7a360766a8a495b5a1a0e947991 /backends/platform/android/gfx.cpp | |
parent | 1c193ed1e5eb6372df181ed70913532d0dcc58f9 (diff) | |
download | scummvm-rg350-9fab467d58f627c704910a62f533c53e1674aee7.tar.gz scummvm-rg350-9fab467d58f627c704910a62f533c53e1674aee7.tar.bz2 scummvm-rg350-9fab467d58f627c704910a62f533c53e1674aee7.zip |
ANDROID: Fix color key handling for 16bit mouse cursors.
This should fix a issue similarly to bug #6108:
"WII: Zak FM-TOWNS mouse cursor encased in blue box".
Diffstat (limited to 'backends/platform/android/gfx.cpp')
-rw-r--r-- | backends/platform/android/gfx.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/platform/android/gfx.cpp b/backends/platform/android/gfx.cpp index 92293493f0..23e29fbf85 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 &= ~1; _mouse_texture->updateBuffer(0, 0, w, h, tmp, pitch); |