Alexandre Julliard : Draw the mask with SRCCOPY in DrawIcon when the image isn't being drawn.

svn path=/trunk/; revision=55534
This commit is contained in:
James Tabor 2012-02-11 01:09:41 +00:00
parent e1f18f1b3b
commit 338cb3493d

View file

@ -1222,6 +1222,7 @@ UserDrawIconEx(
if (diFlags & DI_MASK)
{
DWORD rop = (diFlags & DI_IMAGE) ? SRCAND : SRCCOPY;
hTmpBmp = NtGdiSelectBitmap(hMemDC, hbmMask);
NtGdiStretchBlt(hDestDC,
x,
@ -1233,7 +1234,7 @@ UserDrawIconEx(
0,
pIcon->Size.cx,
pIcon->Size.cy,
SRCAND,
rop,
0);
NtGdiSelectBitmap(hMemDC, hTmpBmp);
}