X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=profile.c;h=6d6e1ff98ff345eeca162a9ba983a93998287167;hb=c7b9387d4bf624230ca2e317e7ac8cf5b4b81f0c;hp=be9a334f3337a0c57aa3d8f554a2c48f97826909;hpb=55156e63c3bf3baa4b07f2d40bb15d1ab8d87ec3;p=ext%2Fsubsurface.git diff --git a/profile.c b/profile.c index be9a334..6d6e1ff 100644 --- a/profile.c +++ b/profile.c @@ -235,8 +235,6 @@ static void plot_depth_profile(struct dive *dive, struct graphics_context *gc, s struct plot_data *entry; int maxtime, maxdepth, marker; - cairo_set_line_width(gc->cr, 2); - /* Get plot scaling limits */ maxtime = round_seconds_up(dive->duration.seconds); maxdepth = round_depth_up(dive->maxdepth); @@ -655,6 +653,9 @@ static void plot(struct graphics_context *gc, int w, int h, struct dive *dive) topx = w / 20.0; topy = h / 20.0; cairo_translate(gc->cr, topx, topy); + cairo_set_line_width(gc->cr, 2); + cairo_set_line_cap(gc->cr, CAIRO_LINE_CAP_ROUND); + cairo_set_line_join(gc->cr, CAIRO_LINE_JOIN_ROUND); /* * We can use "cairo_translate()" because that doesn't