mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
3fc9c1e005
commit
15a99f8789
5 changed files with 35 additions and 9 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue