]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Don't show the smoothed dive profile or the min/max info
authorLinus Torvalds <torvalds@linux-foundation.org>
Tue, 20 Sep 2011 23:45:33 +0000 (16:45 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 20 Sep 2011 23:45:33 +0000 (16:45 -0700)
It was good for debugging, it's not something we really want to show people.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
profile.c

index 20317b93717704e922000528cf1b5060df1d7bd1..1d4cabc084a377cd6ede725244fdfedcc1ac6fc1 100644 (file)
--- 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);