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

Alexandre Julliard julliard at wine.codeweavers.com
Wed May 24 04:00:19 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: ff8306882085eab17daf61b7e89d406cd99e6afb
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=ff8306882085eab17daf61b7e89d406cd99e6afb

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Wed May 24 08:35:12 2006 +0200

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

---

 dlls/x11drv/xrender.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/x11drv/xrender.c b/dlls/x11drv/xrender.c
index 44dbe62..de12029 100644
--- a/dlls/x11drv/xrender.c
+++ b/dlls/x11drv/xrender.c
@@ -1526,6 +1526,7 @@ BOOL X11DRV_AlphaBlend(X11DRV_PDEVICE *d
     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)




More information about the wine-cvs mailing list