don't try to alphablend monochrome bitmaps - fixes the red zone overwrite in opera 9.24

svn path=/trunk/; revision=30687
This commit is contained in:
Christoph von Wittich 2007-11-23 07:33:54 +00:00
parent 4a7a3ecee7
commit 119d8d8d28

View file

@ -1400,7 +1400,10 @@ UserDrawIconEx(
IconSize.cy = bmpMask.bmHeight / 2;
}
if (bmpColor.bmBitsPixel == 32)
/* NtGdiCreateCompatibleBitmap will create a monochrome bitmap
when cxWidth or cyHeight is 0
*/
if ((bmpColor.bmBitsPixel == 32) && (cxWidth != 0) && (cyHeight != 0))
{
bAlpha = TRUE;
}