From 338cb3493d90745eabb3aa23f949afffbd28306f Mon Sep 17 00:00:00 2001 From: James Tabor Date: Sat, 11 Feb 2012 01:09:41 +0000 Subject: [PATCH] Alexandre Julliard : Draw the mask with SRCCOPY in DrawIcon when the image isn't being drawn. svn path=/trunk/; revision=55534 --- reactos/subsystems/win32/win32k/ntuser/cursoricon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reactos/subsystems/win32/win32k/ntuser/cursoricon.c b/reactos/subsystems/win32/win32k/ntuser/cursoricon.c index a2f4a291d41..b786b2b7596 100644 --- a/reactos/subsystems/win32/win32k/ntuser/cursoricon.c +++ b/reactos/subsystems/win32/win32k/ntuser/cursoricon.c @@ -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); }