From: Linus Torvalds Date: Tue, 20 Sep 2011 23:45:33 +0000 (-0700) Subject: Don't show the smoothed dive profile or the min/max info X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=e276b0602bf9b5953f237e67663ee0d3d8d1163b;p=ext%2Fsubsurface.git Don't show the smoothed dive profile or the min/max info It was good for debugging, it's not something we really want to show people. Signed-off-by: Linus Torvalds --- diff --git a/profile.c b/profile.c index 20317b9..1d4cabc 100644 --- a/profile.c +++ b/profile.c @@ -295,8 +295,14 @@ static void plot_depth_profile(struct graphics_context *gc, struct plot_info *pi gc->leftx = 0; gc->rightx = maxtime; - plot_smoothed_profile(gc, pi); - plot_minmax_profile(gc, pi); + /* + * These are good for debugging text placement etc, + * but not for actual display.. + */ + if (0) { + plot_smoothed_profile(gc, pi); + plot_minmax_profile(gc, pi); + } entry = pi->entry; set_source_rgba(gc, 1, 0.2, 0.2, 0.80);