summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorGravatar Robert C. Helling <helling@atdotde.de>2014-09-19 08:48:19 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-09-19 21:48:05 -0700
commit15a99f878970ba90d027f3dda0a779ed0eb3faa9 (patch)
treecf4c4c80b87ef2b8618179098471e55ea49fe426 /profile.c
parent3fc9c1e0053a0ca1d4af7c1e5fb8e118afe0badf (diff)
downloadsubsurface-15a99f878970ba90d027f3dda0a779ed0eb3faa9.tar.gz
Add tissue saturation plot to tooltip
This adds a graphical representation of tissue loadings at the current moment during the dive to the tooltip box. The layout is inspired by the Sherwater Petrel.Add tissue saturation plot to tooltip Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/profile.c b/profile.c
index 6caeab0a8..3e557252b 100644
--- a/profile.c
+++ b/profile.c
@@ -1053,7 +1053,7 @@ static void plot_string(struct plot_info *pi, struct plot_data *entry, struct me
strip_mb(b);
}
-void get_plot_details_new(struct plot_info *pi, int time, struct membuffer *mb)
+struct plot_data *get_plot_details_new(struct plot_info *pi, int time, struct membuffer *mb)
{
struct plot_data *entry = NULL;
int i;
@@ -1065,6 +1065,7 @@ void get_plot_details_new(struct plot_info *pi, int time, struct membuffer *mb)
}
if (entry)
plot_string(pi, entry, mb, pi->has_ndl);
+ return (entry);
}
/* Compare two plot_data entries and writes the results into a string */