summaryrefslogtreecommitdiffstats
path: root/display.h
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2012-12-09 16:54:16 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-12-11 11:04:18 -0800
commitc6ca263fb024bf06f76a5a89fbcd982f3f658d39 (patch)
treed29eff3407e2eed7c498f86bb7fa0804d2c9a979 /display.h
parentfebcbd6325e42b5b9a6478f7e7d726b98cb5e9bb (diff)
downloadsubsurface-c6ca263fb024bf06f76a5a89fbcd982f3f658d39.tar.gz
Calculate dive maxima/minima independent of dive computer
This splits the dive time, depth, pressure and temperature maxima and minima setup from the per-dive-computer "create_plot_info()" function into one setup function that walks _all_ the dive computers, so that we have a global maxima and minima. That way the graph scaling we set up will now fit the data from all dive computers rather than just the particular one we are plotting. So if you switch back-and-forth between computers, the scale (which is defined by the extremes) remains the same. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'display.h')
-rw-r--r--display.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/display.h b/display.h
index 6f9f6854c..b2187d224 100644
--- a/display.h
+++ b/display.h
@@ -16,8 +16,8 @@ struct plot_info {
int nr;
int maxtime;
int meandepth, maxdepth;
- int endpressure, maxpressure;
- int mintemp, maxtemp, endtemp;
+ int minpressure, maxpressure;
+ int mintemp, maxtemp;
double endtempcoord;
gboolean has_ndl;
struct plot_data *entry;