From f0370548c7fdb3651e89b6bdadc895fa68058af8 Mon Sep 17 00:00:00 2001 From: Caolan McNamara Date: Wed, 10 Mar 1999 13:58:35 +0000 Subject: [PATCH] Windows doesnt allow dashed and dotted lines > 1. --- graphics/x11drv/graphics.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/graphics/x11drv/graphics.c b/graphics/x11drv/graphics.c index 8db928988ba..b48ae5dc0e5 100644 --- a/graphics/x11drv/graphics.c +++ b/graphics/x11drv/graphics.c @@ -219,7 +219,9 @@ BOOL X11DRV_SetupGCForPen( DC * dc ) } val.background = physDev->backgroundPixel; val.fill_style = FillSolid; - if ((physDev->pen.style!=PS_SOLID) && (physDev->pen.style!=PS_INSIDEFRAME)) + if ((physDev->pen.width <= 1) && + (physDev->pen.style != PS_SOLID) && + (physDev->pen.style != PS_INSIDEFRAME)) { TSXSetDashes( display, physDev->gc, 0, physDev->pen.dashes, physDev->pen.dash_len ); -- 2.11.4.GIT