diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-05-08 14:56:06 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-08 15:01:49 -0700 |
commit | 6f06c31d0b9db9ffae45d409557864469ab169b0 (patch) | |
tree | d4197bd97aee1fbd6c752d8b6667c99db4786707 /display.h | |
parent | 688276b6f200c5d8b44ab5b6092265a93f7c0b41 (diff) | |
download | subsurface-6f06c31d0b9db9ffae45d409557864469ab169b0.tar.gz |
Stop passing around gc and pi
Make the graphics_context part of the ProfileGraphicsView and remember
that the plot info is already a part of the graphics_context (we kept
passing around both of them in the Gtk code... pointless but a leftover
from before adding the pi to the gc...)
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'display.h')
-rw-r--r-- | display.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -58,7 +58,7 @@ extern void plot(struct graphics_context *gc, struct dive *dive, scale_mode_t sc extern struct divecomputer *select_dc(struct divecomputer *main); extern void init_profile_background(struct graphics_context *gc); extern void attach_tooltip(int x, int y, int w, int h, const char *text, struct event *event); -extern void get_plot_details(struct graphics_context *gc, int time, char *buf, size_t bufsize); +extern void get_plot_details(struct graphics_context *gc, int time, char *buf, int bufsize); extern int x_to_time(double x); extern int x_abs(double x); |