- 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
This commit is contained in:
Aleksey Bragin 2006-12-23 13:36:07 +00:00
parent 885e2ecded
commit d53810a92e

View file

@ -1400,10 +1400,14 @@ UserDrawIconEx(
IconSize.cy = bmpMask.bmHeight / 2; 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; bAlpha = TRUE;
} }*/
if(!diFlags) if(!diFlags)
diFlags = DI_NORMAL; diFlags = DI_NORMAL;
@ -1520,7 +1524,7 @@ UserDrawIconEx(
BlendFunc.SourceConstantAlpha = 255; BlendFunc.SourceConstantAlpha = 255;
BlendFunc.AlphaFormat = AC_SRC_ALPHA; BlendFunc.AlphaFormat = AC_SRC_ALPHA;
NtGdiAlphaBlend(hDc, xLeft, yTop, cxWidth, cyHeight, NtGdiAlphaBlend(hDc, xLeft, yTop, cxWidth, cyHeight,
hdcOff, 0, 0, 0, 0, BlendFunc); hdcOff, 0, 0, cxWidth, cyHeight, BlendFunc);
} }
else else
{ {