aboutsummaryrefslogtreecommitdiff
path: root/backends/platform
diff options
context:
space:
mode:
authorJohannes Schickel2014-03-31 18:59:36 +0200
committerJohannes Schickel2014-03-31 19:04:53 +0200
commit98867825bafee4580f646c74b10c269dc8ccb663 (patch)
tree2d2a5d03ec4124da29e8c393e2ca528603d28a01 /backends/platform
parent9fab467d58f627c704910a62f533c53e1674aee7 (diff)
downloadscummvm-rg350-98867825bafee4580f646c74b10c269dc8ccb663.tar.gz
scummvm-rg350-98867825bafee4580f646c74b10c269dc8ccb663.tar.bz2
scummvm-rg350-98867825bafee4580f646c74b10c269dc8ccb663.zip
ANDROID: Make transparent cursor pixels all 0 in 16bit cursor mode.
Since the Android backend uses glBlendFunc(GL_ONE, GL_ONE_MINUS_SRC_ALPHA) we need to make the transparent cursor pixels all 0 otherwise we might get artifacts from blending.
Diffstat (limited to 'backends/platform')
-rw-r--r--backends/platform/android/gfx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/platform/android/gfx.cpp b/backends/platform/android/gfx.cpp
index 23e29fbf85..b71a98338b 100644
--- a/backends/platform/android/gfx.cpp
+++ b/backends/platform/android/gfx.cpp
@@ -760,7 +760,7 @@ void OSystem_Android::setMouseCursor(const void *buf, uint w, uint h,
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;
+ *d = 0;
_mouse_texture->updateBuffer(0, 0, w, h, tmp, pitch);