IPHONE: Fix transparency with RGB cursors using a key color

This commit is contained in:
Thierry Crozat 2020-10-11 03:55:32 +01:00
parent 3fc7fc285e
commit d43d86f3c0

View file

@ -491,7 +491,6 @@ void OSystem_IPHONE::updateMouseTexture() {
} else {
if (crossBlit((byte *)mouseTexture.getPixels(), (const byte *)_mouseBuffer.getPixels(), mouseTexture.pitch,
_mouseBuffer.pitch, _mouseBuffer.w, _mouseBuffer.h, mouseTexture.format, _mouseBuffer.format)) {
if (!_mouseBuffer.format.aBits()) {
// Apply color keying since the original cursor had no alpha channel.
const uint16 *src = (const uint16 *)_mouseBuffer.getPixels();
uint8 *dstRaw = (uint8 *)mouseTexture.getPixels();
@ -505,7 +504,6 @@ void OSystem_IPHONE::updateMouseTexture() {
*dst |= 1;
}
}
}
} else {
// TODO: Log this!
// Make the cursor all transparent... we really need a better fallback ;-).