IPHONE: Fix transparency with RGB cursors using a key color
This commit is contained in:
parent
3fc7fc285e
commit
d43d86f3c0
1 changed files with 10 additions and 12 deletions
|
@ -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 ;-).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue