x11drv: GdiAlphaBlend fix for X errors if width or height is 0.
This commit is contained in:
parent
e1afe33ac7
commit
ff83068820
@ -1526,6 +1526,7 @@ BOOL X11DRV_AlphaBlend(X11DRV_PDEVICE *devDst, INT xDst, INT yDst, INT widthDst,
|
|||||||
ySrc = pts[0].y;
|
ySrc = pts[0].y;
|
||||||
widthSrc = pts[1].x - pts[0].x;
|
widthSrc = pts[1].x - pts[0].x;
|
||||||
heightSrc = pts[1].y - pts[0].y;
|
heightSrc = pts[1].y - pts[0].y;
|
||||||
|
if (!widthDst || !heightDst || !widthSrc || !heightSrc) return TRUE;
|
||||||
|
|
||||||
#ifndef HAVE_XRENDERSETPICTURETRANSFORM
|
#ifndef HAVE_XRENDERSETPICTURETRANSFORM
|
||||||
if(widthDst != widthSrc || heightDst != heightSrc)
|
if(widthDst != widthSrc || heightDst != heightSrc)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user