From d53810a92e4f26f7352846bf8d9498e8b0a7884d Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Sat, 23 Dec 2006 13:36:07 +0000 Subject: [PATCH] - Fix width/height params in a call to NtGdiAlphaBlend(). - Temporary disable the alpha blending code, because it doesn't work correctly. Comments added to the code. svn path=/trunk/; revision=25211 --- reactos/subsystems/win32/win32k/ntuser/cursoricon.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/reactos/subsystems/win32/win32k/ntuser/cursoricon.c b/reactos/subsystems/win32/win32k/ntuser/cursoricon.c index 8438cd1bd50..9846ada5152 100644 --- a/reactos/subsystems/win32/win32k/ntuser/cursoricon.c +++ b/reactos/subsystems/win32/win32k/ntuser/cursoricon.c @@ -1400,10 +1400,14 @@ UserDrawIconEx( IconSize.cy = bmpMask.bmHeight / 2; } - if (bmpColor.bmBitsPixel == 32) + /* A hack to get alpha-blending support for icons. + Disabled now because of a bug in alpha blending function + (which blends with white background instead of the background). + */ + /*if (bmpColor.bmBitsPixel == 32) { bAlpha = TRUE; - } + }*/ if(!diFlags) diFlags = DI_NORMAL; @@ -1520,7 +1524,7 @@ UserDrawIconEx( BlendFunc.SourceConstantAlpha = 255; BlendFunc.AlphaFormat = AC_SRC_ALPHA; NtGdiAlphaBlend(hDc, xLeft, yTop, cxWidth, cyHeight, - hdcOff, 0, 0, 0, 0, BlendFunc); + hdcOff, 0, 0, cxWidth, cyHeight, BlendFunc); } else {