mirror of
https://github.com/reactos/reactos.git
synced 2025-01-13 01:22:03 +00:00
- 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:
parent
885e2ecded
commit
d53810a92e
1 changed files with 7 additions and 3 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue