From 912ce7941fcc522d208b92fafd51b64816151bdc Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 28 Sep 2011 15:53:16 -0700 Subject: [PATCH] Remove average depth from print It looks confusing in black and white Signed-off-by: Dirk Hohndel --- profile.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/profile.c b/profile.c index 0e53617..23ff491 100644 --- a/profile.c +++ b/profile.c @@ -306,10 +306,12 @@ static void plot_depth_profile(struct graphics_context *gc, struct plot_info *pi cairo_stroke(cr); /* Show mean depth */ - set_source_rgba(gc, 1, 0.2, 0.2, 0.40); - move_to(gc, 0, pi->meandepth); - line_to(gc, 1, pi->meandepth); - cairo_stroke(cr); + if (! gc->printer) { + set_source_rgba(gc, 1, 0.2, 0.2, 0.40); + move_to(gc, 0, pi->meandepth); + line_to(gc, 1, pi->meandepth); + cairo_stroke(cr); + } gc->leftx = 0; gc->rightx = maxtime; -- 2.43.0