aboutsummaryrefslogtreecommitdiffstats
path: root/display.h
diff options
context:
space:
mode:
Diffstat (limited to 'display.h')
-rw-r--r--display.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/display.h b/display.h
index 6eea822aa..6f9f6854c 100644
--- a/display.h
+++ b/display.h
@@ -10,6 +10,19 @@
extern void repaint_dive(void);
extern void do_print(void);
+/* Plot info with smoothing, velocity indication
+ * and one-, two- and three-minute minimums and maximums */
+struct plot_info {
+ int nr;
+ int maxtime;
+ int meandepth, maxdepth;
+ int endpressure, maxpressure;
+ int mintemp, maxtemp, endtemp;
+ double endtempcoord;
+ gboolean has_ndl;
+ struct plot_data *entry;
+};
+
/*
* Cairo scaling really is horribly horribly mis-designed.
*
@@ -26,7 +39,7 @@ struct graphics_context {
double leftx, rightx;
double topy, bottomy;
unsigned int maxtime;
- void *plot_info;
+ struct plot_info pi;
};
typedef enum { SC_SCREEN, SC_PRINT } scale_mode_t;