Author: jimtabor
Date: Sat Feb 11 01:09:41 2012
New Revision: 55534
URL:
http://svn.reactos.org/svn/reactos?rev=55534&view=rev
Log:
Alexandre Julliard : Draw the mask with SRCCOPY in DrawIcon when the image isn't being
drawn.
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/cursoricon.c [iso-8859-1] Sat Feb 11
01:09:41 2012
@@ -1222,6 +1222,7 @@
if (diFlags & DI_MASK)
{
+ DWORD rop = (diFlags & DI_IMAGE) ? SRCAND : SRCCOPY;
hTmpBmp = NtGdiSelectBitmap(hMemDC, hbmMask);
NtGdiStretchBlt(hDestDC,
x,
@@ -1233,7 +1234,7 @@
0,
pIcon->Size.cx,
pIcon->Size.cy,
- SRCAND,
+ rop,
0);
NtGdiSelectBitmap(hMemDC, hTmpBmp);
}