Fix:graphics_gd:Fixed wrong usage of gdImageSetStyle
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 16 Dec 2008 18:00:07 +0000 (18:00 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 16 Dec 2008 18:00:07 +0000 (18:00 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@1813 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/graphics/gd/graphics_gd.c

index 562002d..a8501bf 100644 (file)
@@ -308,8 +308,8 @@ draw_lines(struct graphics_priv *gr, struct graphics_gc_priv *gc, struct point *
                        else
                                cc=gdTransparent;
                }
+               gdImageSetStyle(gr->im, color, gc->dash_count);
        }
-       gdImageSetStyle(gr->im, color, gc->dash_count);
        gdImageSetThickness(gr->im, gc->width);
        gdImageOpenPolygon(gr->im, (gdPointPtr) p, count, gc->dash_count ? gdStyled : gc->color);  
 }
@@ -332,7 +332,6 @@ draw_rectangle(struct graphics_priv *gr, struct graphics_gc_priv *gc, struct poi
 static void
 draw_circle(struct graphics_priv *gr, struct graphics_gc_priv *gc, struct point *p, int r)
 {
-       gdImageSetStyle(gr->im, NULL, 0);
        gdImageSetThickness(gr->im, gc->width);
        gdImageArc(gr->im, p->x, p->y, r, r, 0, 360, gc->color);
 }