Skip to content

Commit be3ddf2

Browse files
committed
Fixed partial alpha in ICO and CUR images
Fixes libsdl-org#518
1 parent 23869c1 commit be3ddf2

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGES.txt

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
3.2.2:
2+
* Fixed partial alpha in ICO and CUR images
3+
14
3.0.0:
25
* Added support for loading HDR AVIF images
36
* Added AVIF save support:

src/IMG_bmp.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ LoadICOCUR_IO(SDL_IOStream * src, int type, bool closeio)
403403
goto done;
404404
}
405405
}
406-
*((Uint32 *) bits + i) |= ((pixel >> shift) ? 0 : 0xFF000000);
406+
*((Uint32 *) bits + i) &= ((pixel >> shift) ? 0 : 0xFFFFFFFF);
407407
pixel <<= ExpandBMP;
408408
}
409409
/* Skip padding bytes, ugh */

0 commit comments

Comments
 (0)