diff options
-rw-r--r-- | navit/graphics.c | 6 | ||||
-rw-r--r-- | navit/graphics.h | 1 | ||||
-rw-r--r-- | navit/transform.h | 4 |
3 files changed, 10 insertions, 1 deletions
diff --git a/navit/graphics.c b/navit/graphics.c index 972c0792d..b20456797 100644 --- a/navit/graphics.c +++ b/navit/graphics.c @@ -1383,7 +1383,7 @@ static void displayitem_draw(struct displayitem *di, void *dummy, struct display_context *dc) { int width[16384]; - int count; + int i,count; struct point pa[16384]; struct graphics *gra=dc->gra; struct graphics_gc *gc=dc->gc; @@ -1443,6 +1443,10 @@ displayitem_draw(struct displayitem *di, void *dummy, struct display_context *dc if (di->label && !strcmp(di->label, "Bahnhofstr.") && di->item.type != type_street_1_city) { dbg(0,"0x%x,0x%x %s\n", di->item.id_hi, di->item.id_lo, item_to_name(di->item.type)); #endif + for (i = 0 ; i < count ; i++) { + if (width[i] < 2) + width[i]=2; + } graphics_draw_polyline_clipped(gra, gc, pa, count, width, 1, e->u.polyline.width > 1); #if 0 } diff --git a/navit/graphics.h b/navit/graphics.h index 300c72d3b..b5cd05f54 100644 --- a/navit/graphics.h +++ b/navit/graphics.h @@ -140,6 +140,7 @@ struct graphics_gc *graphics_gc_new(struct graphics *gra); void graphics_gc_destroy(struct graphics_gc *gc); void graphics_gc_set_foreground(struct graphics_gc *gc, struct color *c); void graphics_gc_set_background(struct graphics_gc *gc, struct color *c); +void graphics_gc_set_stipple(struct graphics_gc *gc, struct graphics_image *img); void graphics_gc_set_linewidth(struct graphics_gc *gc, int width); void graphics_gc_set_dashes(struct graphics_gc *gc, int width, int offset, unsigned char dash_list[], int n); struct graphics_image *graphics_image_new_scaled(struct graphics *gra, char *path, int w, int h); diff --git a/navit/transform.h b/navit/transform.h index 1d36baf2d..d69842158 100644 --- a/navit/transform.h +++ b/navit/transform.h @@ -37,6 +37,10 @@ struct pcoord; struct point; struct transformation; struct transformation *transform_new(void); +int transform_get_hog(struct transformation *this_); +void transform_set_hog(struct transformation *this_, int hog); +int transformation_get_order_base(struct transformation *this_); +void transform_set_order_base(struct transformation *this_, int order_base); struct transformation * transform_dup(struct transformation *t); void transform_to_geo(enum projection pro, struct coord *c, struct coord_geo *g); void transform_from_geo(enum projection pro, struct coord_geo *g, struct coord *c); |