mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-28 15:02:39 +00:00
Fixed random junk that may appear in transparency (alpha) channel of mouse cursor image
This commit is contained in:
parent
fc8f260375
commit
fa1d62ffbf
1 changed files with 2 additions and 0 deletions
|
@ -1539,6 +1539,8 @@ bool I_SetCursor(FTexture* cursorpic)
|
|||
// Load bitmap data to representation
|
||||
|
||||
BYTE* buffer = [bitmapImageRep bitmapData];
|
||||
memset(buffer, 0, imagePitch * imageHeight);
|
||||
|
||||
FBitmap bitmap(buffer, imagePitch, imageWidth, imageHeight);
|
||||
cursorpic->CopyTrueColorPixels(&bitmap, 0, 0);
|
||||
|
||||
|
|
Loading…
Reference in a new issue