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.
This commit is contained in:
Johannes Schickel 2014-03-31 18:59:36 +02:00
parent 9fab467d58
commit 98867825ba

View File

@ -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);