mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 21:21:04 +00:00
Fix uncleared buffer when upscaling the cursor
This commit is contained in:
parent
5e171824ac
commit
c3cb9d20fb
1 changed files with 1 additions and 0 deletions
|
@ -1428,6 +1428,7 @@ static HCURSOR CreateAlphaCursor(FTexture *cursorpic)
|
|||
{
|
||||
TArray<uint32_t> unscaled;
|
||||
unscaled.Resize(32 * 32);
|
||||
for (int i = 0; i < 32 * 32; i++) unscaled[i] = 0;
|
||||
FBitmap bmp((BYTE *)&unscaled[0] + 31 * 32 * 4, -32 * 4, 32, 32);
|
||||
cursorpic->CopyTrueColorPixels(&bmp, 0, 0);
|
||||
uint32_t *scaled = (uint32_t*)bits;
|
||||
|
|
Loading…
Reference in a new issue