mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Improve deco handling and add NDL support
This commit changes the code that was recently introduced to deal with deco ceilings. Instead of handling these through events we now store the ceiling (which in reality is the deepest deco stop with all known dive computers) and the stop time at that ceiling in the samples. This also adds support for NDL (non stop dive limit) which both dive computers that appear to give us ceiling / deco information appear to give us as well (when the diver isn't in deco). If the mouse hovers over the profile we now add support for displaying the NDL, the current deco obligation and (if we are able to tell from the data) whether we are at a safety stop. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
7383f7fe0a
commit
dcb6574dc4
6 changed files with 151 additions and 93 deletions
|
@ -1274,7 +1274,7 @@ static gboolean profile_tooltip (GtkWidget *widget, gint x, gint y,
|
|||
gint tx = x - drawing_area->x; /* get transformed coordinates */
|
||||
gint ty = y - drawing_area->y;
|
||||
gint width, height, time = -1;
|
||||
char buffer[80], plot[80];
|
||||
char buffer[256], plot[256];
|
||||
const char *event = "";
|
||||
|
||||
if (tx < 0 || ty < 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue