winex11.drv: don't draw dashes on non-extended wide pens

Evan Stade estade at gmail.com
Fri Jul 20 19:50:19 CDT 2007


Hi,

This puts back the draw-time check for width that existed before my
last winex11.drv patch.

 dlls/winex11.drv/graphics.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

-- 
Evan Stade
-------------- next part --------------
diff --git a/dlls/winex11.drv/graphics.c b/dlls/winex11.drv/graphics.c
index b2e105f..a166ad9 100644
--- a/dlls/winex11.drv/graphics.c
+++ b/dlls/winex11.drv/graphics.c
@@ -243,7 +243,7 @@ BOOL X11DRV_SetupGCForPen( X11DRV_PDEVIC
 	val.join_style = JoinRound;
     }
     wine_tsx11_lock();
-    if (physDev->pen.dash_len)
+    if (physDev->pen.dash_len && (ext || physDev->pen.width <= 1))
     {
         XSetDashes( gdi_display, physDev->gc, 0, physDev->pen.dashes, physDev->pen.dash_len );
         val.line_style = ((GetBkMode(physDev->hdc) == OPAQUE) && (!physDev->pen.ext))
-- 
1.4.1


More information about the wine-patches mailing list