summaryrefslogtreecommitdiffstats
path: root/gtk-gui.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2012-12-01 13:02:30 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-12-04 21:05:26 -0800
commitdcb6574dc4252c4ff598efb17269b7f1255afec1 (patch)
treec774cd0bb3c85c36988976ce1ab6086c9e996f7b /gtk-gui.c
parent7383f7fe0a77c906aafcd61ccfc09dc1866c5416 (diff)
downloadsubsurface-dcb6574dc4252c4ff598efb17269b7f1255afec1.tar.gz
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>
Diffstat (limited to 'gtk-gui.c')
-rw-r--r--gtk-gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk-gui.c b/gtk-gui.c
index f7936f6b4..f25631f44 100644
--- a/gtk-gui.c
+++ b/gtk-gui.c
@@ -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)