diff options
author | kazer_ <kazer_@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-09-01 09:45:27 +0000 |
---|---|---|
committer | kazer_ <kazer_@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2008-09-01 09:45:27 +0000 |
commit | ca0f300151dfb08dc630cd16224384661ff7dd9d (patch) | |
tree | cbeb563ef7cf043d69f265dee3039dacdfe74a6a /navit/layout.c | |
parent | dea4ff151b7c5511c20ef0da3459121b94467411 (diff) | |
download | navit-ca0f300151dfb08dc630cd16224384661ff7dd9d.tar.gz |
Patch:Core:Patch from Helge to add offset to dashed polylines. Thank you
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1354 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/layout.c')
-rw-r--r-- | navit/layout.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/navit/layout.c b/navit/layout.c index e4f55718f..eb124dfad 100644 --- a/navit/layout.c +++ b/navit/layout.c @@ -100,7 +100,7 @@ polygon_new(struct color *color) struct element * polyline_new(struct color *color, int width, int directed, - int *dash_table, int dash_num) + int dash_offset, int *dash_table, int dash_num) { struct element *e; int i; @@ -110,6 +110,7 @@ polyline_new(struct color *color, int width, int directed, e->color=*color; e->u.polyline.width=width; e->u.polyline.directed=directed; + e->u.polyline.dash_offset = dash_offset; e->u.polyline.dash_num=dash_num; for (i=0; i<dash_num; i++) e->u.polyline.dash_table[i] = dash_table[i]; |