mirror of
https://github.com/reactos/reactos.git
synced 2024-07-14 00:25:05 +00:00
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:
parent
e1f18f1b3b
commit
338cb3493d
|
@ -1222,6 +1222,7 @@ UserDrawIconEx(
|
||||||
|
|
||||||
if (diFlags & DI_MASK)
|
if (diFlags & DI_MASK)
|
||||||
{
|
{
|
||||||
|
DWORD rop = (diFlags & DI_IMAGE) ? SRCAND : SRCCOPY;
|
||||||
hTmpBmp = NtGdiSelectBitmap(hMemDC, hbmMask);
|
hTmpBmp = NtGdiSelectBitmap(hMemDC, hbmMask);
|
||||||
NtGdiStretchBlt(hDestDC,
|
NtGdiStretchBlt(hDestDC,
|
||||||
x,
|
x,
|
||||||
|
@ -1233,7 +1234,7 @@ UserDrawIconEx(
|
||||||
0,
|
0,
|
||||||
pIcon->Size.cx,
|
pIcon->Size.cx,
|
||||||
pIcon->Size.cy,
|
pIcon->Size.cy,
|
||||||
SRCAND,
|
rop,
|
||||||
0);
|
0);
|
||||||
NtGdiSelectBitmap(hMemDC, hTmpBmp);
|
NtGdiSelectBitmap(hMemDC, hTmpBmp);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue