diff options
author | Tomaz Canabrava <tcanabrava@kde.org> | 2014-01-15 13:34:55 -0200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2014-01-16 10:12:31 +0700 |
commit | dd64f1792d853e4d3e124ccd9b9600990880f50e (patch) | |
tree | eaa0a6ba33c8b60e7b88a90f23475a45a2b1119d /profile.h | |
parent | 52064d9e02a6ca559beb8f8e64e28e2ef77c5e44 (diff) | |
download | subsurface-dd64f1792d853e4d3e124ccd9b9600990880f50e.tar.gz |
Reworked the calculate_max_limits and plotted the dive.
Created a new version of calculate_max_limits that doesn't have a
graphics_context and returns a plot_info. The code is basically the same
as the old calculate_max_limits, so there's not much to talk about.
The rest of the code is just boilerplate to plug the Profile
code with the axis and model stuff, to be plotted on screen.
Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.h')
-rw-r--r-- | profile.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -43,8 +43,9 @@ struct plot_data { int stopdepth_calc; int pressure_time; }; - +//TODO: remove the calculatE_max_limits as soon as the new profile is done. void calculate_max_limits(struct dive *dive, struct divecomputer *dc, struct graphics_context *gc); +struct plot_info calculate_max_limits_new(struct dive *dive, struct divecomputer *dc); struct plot_info *create_plot_info(struct dive *dive, struct divecomputer *dc, struct graphics_context *gc, bool print_mode); int setup_temperature_limits(struct graphics_context *gc); int get_cylinder_pressure_range(struct graphics_context *gc); |