diff options
Diffstat (limited to 'navit/graphics.c')
-rw-r--r-- | navit/graphics.c | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/navit/graphics.c b/navit/graphics.c index 69eabfc3e..4651e3f04 100644 --- a/navit/graphics.c +++ b/navit/graphics.c @@ -1574,10 +1574,6 @@ draw_shape(struct draw_polyline_context *ctx, struct point *pnt, int wi) struct draw_polyline_shape *shape=&ctx->shape; struct draw_polyline_shape *prev=&ctx->prev_shape; -#if 0 - dbg(lvl_debug,"enter %d,%d - %d,%d %d",pnt[0].x,pnt[0].y,pnt[1].x,pnt[1].y,wi); -#endif - *prev=*shape; if (prev->wi != wi && prev->l) { prev->wi=wi; @@ -1592,9 +1588,6 @@ draw_shape(struct draw_polyline_context *ctx, struct point *pnt, int wi) shape->step=8; else shape->step=16; -#if 0 - l = int_sqrt(dx * dx * lscale * lscale + dy * dy * lscale * lscale); -#else dxs=shape->dx*shape->dx; dys=shape->dy*shape->dy; lscales=lscale*lscale; @@ -1712,11 +1705,6 @@ graphics_draw_polyline_as_polygon(struct graphics_priv *gra_priv, struct graphic int max_circle_points=20; if (count < 2) return; -#if 0 - dbg(lvl_debug,"count=%d",count); - for (i = 0 ; i < count ; i++) - dbg(lvl_debug,"%d,%d width %d",pnt[i].x,pnt[i].y,width[i]); -#endif ctx.shape.l=0; ctx.shape.wi=0; ctx.res=g_alloca(sizeof(struct point)*maxpoints); @@ -1895,9 +1883,6 @@ graphics_draw_polyline_clipped(struct graphics *gra, struct graphics_gc *gc, str if (points_to_draw_cnt > 1) { if (poly) { graphics_draw_polyline_as_polygon(gra->priv, gc->priv, points_to_draw, points_to_draw_cnt, w, gra->meth.draw_polygon); -#if 0 - gra->meth.draw_lines(gra->priv, gc->priv, points_to_draw, points_to_draw_cnt); -#endif } else gra->meth.draw_lines(gra->priv, gc->priv, points_to_draw, points_to_draw_cnt); points_to_draw_cnt=0; @@ -1967,12 +1952,6 @@ graphics_draw_polygon_clipped(struct graphics *gra, struct graphics_gc *gc, stru struct point *pa2=g_alloca(sizeof(struct point) * (count_in < limit ? count_in*8+1:0)); int count_out,edge=3; int i; -#if 0 - r.lu.x+=20; - r.lu.y+=20; - r.rl.x-=20; - r.rl.y-=20; -#endif if (count_in < limit) { p1=pa1; p2=pa2; @@ -2136,18 +2115,6 @@ displayitem_draw(struct displayitem *di, void *dummy, struct display_context *dc count=limit_count(di->c, count); if (dc->type == type_poly_water_tiled) mindist=0; -#if 0 - if (dc->e->type == element_polygon) { - int max=1000; - int offset=5600; - c+=offset; - count-=offset; - if (count < 0) - count=0; - if (count > max) - count=max; - } -#endif if (dc->e->type == element_polyline) count=transform(dc->trans, dc->pro, di->c, pa, count, mindist, e->u.polyline.width, width); else @@ -2527,9 +2494,6 @@ do_draw(struct displaylist *displaylist, int cancel, int flags) count=item_coord_get_within_selection(item, ca, item->type < type_line ? 1: max, displaylist->sel); if (! count) continue; -#if 0 - dbg(lvl_debug,"%s 0x%x 0x%x",item_to_name(item->type), item->id_hi, item->id_lo); -#endif if (displaylist->dc.pro != pro) transform_from_to_count(ca, displaylist->dc.pro, ca, pro, count); if (count == max) { |