Ticket #1050: polygon_optimization_mod.diff

File polygon_optimization_mod.diff, 741 bytes (added by tegzed, 8 years ago)

disable polygon simplification for polygons with less than 40 vertices

  • graphics.c

     
    18701870        if (dc->type == type_poly_water_tiled)
    18711871                mindist=0;
    18721872        if (dc->e->type == element_polyline)
    1873                 count=transform(dc->trans, dc->pro, di->c, pa, count, mindist, e->u.polyline.width, width);
     1873                count=transform(dc->trans, dc->pro, di->c, pa, count, count<40 ? 0 : mindist, e->u.polyline.width, width);
    18741874        else
    1875                 count=transform(dc->trans, dc->pro, di->c, pa, count, mindist, 0, NULL);
     1875                count=transform(dc->trans, dc->pro, di->c, pa, count, count<40 ? 0 : mindist, 0, NULL);
    18761876        switch (e->type) {
    18771877        case element_polygon:
    18781878                graphics_draw_polygon_clipped(gra, gc, pa, count);