From: John Ellson Date: Mon, 16 Apr 2012 16:34:31 +0000 (-0400) Subject: apply patch from dds@aueb.gr X-Git-Tag: LAST_LIBGRAPH~32^2~444^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e2b7f9d84c20ba8f90589ece53d4f8c8306579e;p=graphviz apply patch from dds@aueb.gr --- diff --git a/plugin/gdiplus/gvrender_gdiplus.cpp b/plugin/gdiplus/gvrender_gdiplus.cpp index e5b0995f4..016000b47 100755 --- a/plugin/gdiplus/gvrender_gdiplus.cpp +++ b/plugin/gdiplus/gvrender_gdiplus.cpp @@ -211,6 +211,24 @@ static void gdiplusgen_path(GVJ_t *job, const GraphicsPath *path, int filled) /* draw the given path from job pen color and pen width */ Pen draw_pen(Color(job->obj->pencolor.u.rgba [3], job->obj->pencolor.u.rgba [0], job->obj->pencolor.u.rgba [1], job->obj->pencolor.u.rgba [2]), job->obj->penwidth); + + /* + * Set line type + * See http://msdn.microsoft.com/en-us/library/ms535050%28v=vs.85%29.aspx + */ + switch (job->obj->pen) { + case PEN_NONE: + return; + case PEN_DASHED: + draw_pen.SetDashStyle(DashStyleDash); + break; + case PEN_DOTTED: + draw_pen.SetDashStyle(DashStyleDot); + break; + case PEN_SOLID: + break; + } + context->DrawPath(&draw_pen, path); }