mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-22 10:17:22 +00:00
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:
parent
9fab467d58
commit
98867825ba
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user