]> git.tdb.fi Git - ext/subsurface.git/commitdiff
Flip tank pressure graph to show the RIGHT way
authorDirk Hohndel <dirk@hohndel.org>
Sat, 17 Sep 2011 03:53:05 +0000 (20:53 -0700)
committerDirk Hohndel <dirk@hohndel.org>
Sat, 17 Sep 2011 03:53:05 +0000 (20:53 -0700)
This annoyed me from the first moment Linus added the tank pressure graph.
As the pressure goes down, the graph needs to go down. Seriously.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
profile.c

index be345882dcb74c18811ecc5c45850bf790b4be93..270b203c4d365e7da7429104e575805f686c378e 100644 (file)
--- a/profile.c
+++ b/profile.c
@@ -441,7 +441,7 @@ static int get_cylinder_pressure_range(struct graphics_context *gc, struct plot_
        gc->leftx = 0;
        gc->rightx = get_maxtime(pi);
 
-       gc->topy = 0; gc->bottomy = pi->maxpressure * 1.5;
+       gc->bottomy = 0; gc->topy = pi->maxpressure * 1.5;
        return pi->maxpressure != 0;
 }