diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2012-11-01 11:44:18 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-11-01 11:44:18 -0700 |
commit | 01fd6a57bce4cd501b23481591462161f2ae34d5 (patch) | |
tree | 750c61be900dc490511a1f4690b4921fcffeef55 /display-gtk.h | |
parent | bdc6b6ba243678e00c3e7f639358ee803ef5d85b (diff) | |
download | subsurface-01fd6a57bce4cd501b23481591462161f2ae34d5.tar.gz |
Add vertical space to depth plot if we are showing partial pressure graphs
Fairly simplistic change that modifies the way we calculate the "maxdepth"
for a particular dive as that is used to scale the plot vertically.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'display-gtk.h')
-rw-r--r-- | display-gtk.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/display-gtk.h b/display-gtk.h index ea4786b67..22ff9d626 100644 --- a/display-gtk.h +++ b/display-gtk.h @@ -27,6 +27,11 @@ typedef struct { gboolean phe; } enabled_graphs_t; +extern visible_cols_t visible_cols; +extern enabled_graphs_t enabled_graphs; + +#define GRAPHS_ENABLED (enabled_graphs.po2 || enabled_graphs.pn2 || enabled_graphs.phe) + typedef enum { PREF_BOOL, PREF_STRING @@ -59,9 +64,6 @@ extern void quit(GtkWidget *w, gpointer data); extern int is_default_dive_computer_device(const char *name); -extern visible_cols_t visible_cols; -extern enabled_graphs_t enabled_graphs; - extern const char *divelist_font; extern void set_divelist_font(const char *); |