diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-13 08:25:54 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-13 08:25:54 -0700 |
commit | 0a13d287e5484a653bc53513a41af1942668e87f (patch) | |
tree | b80d326304f12ef2333c87b4f317a5e410c90469 /profile.c | |
parent | 55156e63c3bf3baa4b07f2d40bb15d1ab8d87ec3 (diff) | |
download | subsurface-0a13d287e5484a653bc53513a41af1942668e87f.tar.gz |
Use round line noins and caps
It doesn't really make much of a difference, but it can be visible
especially with lots of tight samples. Miter joins really look horrible
for acute angles.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'profile.c')
-rw-r--r-- | profile.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |