diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2012-12-09 16:54:16 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-12-11 11:04:18 -0800 |
commit | c6ca263fb024bf06f76a5a89fbcd982f3f658d39 (patch) | |
tree | d29eff3407e2eed7c498f86bb7fa0804d2c9a979 /display.h | |
parent | febcbd6325e42b5b9a6478f7e7d726b98cb5e9bb (diff) | |
download | subsurface-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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |