mirror of
https://github.com/reactos/wine.git
synced 2025-02-19 04:18:09 +00:00
Remove the background from the new image when it is being replaced
with a ReplaceImage.
This commit is contained in:
parent
4d05761958
commit
031793e7f9
@ -2272,6 +2272,16 @@ ImageList_Replace (HIMAGELIST himl, INT i, HBITMAP hbmImage,
|
||||
|
||||
StretchBlt (hdcImageList, i * himl->cx, 0, himl->cx, himl->cy,
|
||||
hdcImage, 0, 0, bmp.bmWidth, bmp.bmHeight, SRCCOPY);
|
||||
|
||||
|
||||
/* Remove the background from the image
|
||||
*/
|
||||
SelectObject (hdcImageList, himl->hbmImage);
|
||||
StretchBlt (hdcImageList,
|
||||
i*himl->cx, 0, himl->cx, himl->cy,
|
||||
hdcImage,
|
||||
0, 0, bmp.bmWidth, bmp.bmHeight,
|
||||
0x220326); /* NOTSRCAND */
|
||||
}
|
||||
|
||||
DeleteDC (hdcImage);
|
||||
|
Loading…
x
Reference in New Issue
Block a user