summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorGravatar Anton Lundin <glance@acc.umu.se>2013-10-14 23:48:44 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-17 14:56:52 -0700
commit579d1cb91503ff3b51e94869a0234eaf2796f435 (patch)
tree53db920564565e79013b62f5b32411db1532bc17 /profile.c
parent437246d3ed280e2275fddc125f2f14005cc11dab (diff)
downloadsubsurface-579d1cb91503ff3b51e94869a0234eaf2796f435.tar.gz
Show SAC in the mouseover.
This is really nice to have when looking at specific parts of a dive. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'profile.c')
-rw-r--r--profile.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/profile.c b/profile.c
index 80b0dbc97..426f97383 100644
--- a/profile.c
+++ b/profile.c
@@ -1250,6 +1250,10 @@ static void plot_string(struct plot_data *entry, char *buf, int bufsize,
else
snprintf(buf, bufsize, translate("gettextFromC","%s\nNDL:%umin"), buf2, DIV_UP(entry->ndl, 60));
}
+ if (entry->sac && prefs.show_sac) {
+ memcpy(buf2, buf, bufsize);
+ snprintf(buf, bufsize, translate("gettextFromC","%s\nSAC:%2.1fl/min"), buf2, entry->sac / 1000.0);
+ }
if (entry->tts) {
memcpy(buf2, buf, bufsize);
snprintf(buf, bufsize, translate("gettextFromC","%s\nTTS:%umin"), buf2, DIV_UP(entry->tts, 60));