diff --git a/dlls/winex11.drv/graphics.c b/dlls/winex11.drv/graphics.c index 1558aa5321e..975a941f214 100644 --- a/dlls/winex11.drv/graphics.c +++ b/dlls/winex11.drv/graphics.c @@ -243,9 +243,7 @@ BOOL X11DRV_SetupGCForPen( X11DRV_PDEVICE *physDev ) val.join_style = JoinRound; } wine_tsx11_lock(); - if ((physDev->pen.width <= 1) && - (physDev->pen.style != PS_SOLID) && - (physDev->pen.style != PS_INSIDEFRAME)) + if (physDev->pen.width <= 1 && physDev->pen.dash_len) { XSetDashes( gdi_display, physDev->gc, 0, physDev->pen.dashes, physDev->pen.dash_len ); val.line_style = (GetBkMode(physDev->hdc) == OPAQUE) ? LineDoubleDash : LineOnOffDash; diff --git a/dlls/winex11.drv/pen.c b/dlls/winex11.drv/pen.c index faeae5c243e..32d9e7397e7 100644 --- a/dlls/winex11.drv/pen.c +++ b/dlls/winex11.drv/pen.c @@ -98,7 +98,11 @@ HPEN X11DRV_SelectPen( X11DRV_PDEVICE *physDev, HPEN hpen ) break; case PS_USERSTYLE: FIXME("PS_USERSTYLE is not supported\n"); - break; + /* fall through */ + default: + physDev->pen.dashes = NULL; + physDev->pen.dash_len = 0; + break; } return hpen; }