x11drv: GdiAlphaBlend fix for X errors if width or height is 0.

This commit is contained in:
Marcus Meissner 2006-05-24 08:35:12 +02:00 committed by Alexandre Julliard
parent e1afe33ac7
commit ff83068820

View file

@ -1526,6 +1526,7 @@ BOOL X11DRV_AlphaBlend(X11DRV_PDEVICE *devDst, INT xDst, INT yDst, INT widthDst,
ySrc = pts[0].y;
widthSrc = pts[1].x - pts[0].x;
heightSrc = pts[1].y - pts[0].y;
if (!widthDst || !heightDst || !widthSrc || !heightSrc) return TRUE;
#ifndef HAVE_XRENDERSETPICTURETRANSFORM
if(widthDst != widthSrc || heightDst != heightSrc)