summaryrefslogtreecommitdiffstats
path: root/profile.h
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2013-11-13 19:20:09 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-11-14 07:08:57 +0900
commit39a4e38eea0b15a7fede2e56d043fd980462b583 (patch)
treee3368502fec87bd37e1e41afc8bd55545021b794 /profile.h
parent98322a976cac3884d6e023d4b29cdd4c3d4f43bc (diff)
downloadsubsurface-39a4e38eea0b15a7fede2e56d043fd980462b583.tar.gz
Break calculated deco info to separate vars
Store the calculated values in separate variables in the plot_data struct, and display them separate. This makes sure we don't confuse the calculated values with the ones from a dc, and now we can compare the two. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.h')
-rw-r--r--profile.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/profile.h b/profile.h
index beb973ba8..563fa700d 100644
--- a/profile.h
+++ b/profile.h
@@ -23,7 +23,6 @@ struct plot_data {
int ceiling;
int ceilings[16];
int ndl;
- int tts;
int stoptime;
int stopdepth;
int cns;
@@ -36,6 +35,12 @@ struct plot_data {
struct plot_data *min[3];
struct plot_data *max[3];
int avg[3];
+ /* values calculated by us */
+ unsigned int in_deco_calc:1;
+ int ndl_calc;
+ int tts_calc;
+ int stoptime_calc;
+ int stopdepth_calc;
};
void calculate_max_limits(struct dive *dive, struct divecomputer *dc, struct graphics_context *gc);