mirror of
https://github.com/reactos/reactos.git
synced 2024-07-06 20:55:16 +00:00
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:
parent
4a7a3ecee7
commit
119d8d8d28
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue