summaryrefslogtreecommitdiffstats
path: root/profile.c
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-08 14:56:06 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-08 15:01:49 -0700
commit6f06c31d0b9db9ffae45d409557864469ab169b0 (patch)
treed4197bd97aee1fbd6c752d8b6667c99db4786707 /profile.c
parent688276b6f200c5d8b44ab5b6092265a93f7c0b41 (diff)
downloadsubsurface-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 'profile.c')
-rw-r--r--profile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/profile.c b/profile.c
index f68822009..85fb9f3e2 100644
--- a/profile.c
+++ b/profile.c
@@ -1551,7 +1551,7 @@ struct divecomputer *select_dc(struct divecomputer *main)
return main;
}
-static void plot_string(struct plot_data *entry, char *buf, size_t bufsize,
+static void plot_string(struct plot_data *entry, char *buf, int bufsize,
int depth, int pressure, int temp, gboolean has_ndl)
{
int pressurevalue, mod, ead, end, eadd;
@@ -1635,7 +1635,7 @@ static void plot_string(struct plot_data *entry, char *buf, size_t bufsize,
free(buf2);
}
-void get_plot_details(struct graphics_context *gc, int time, char *buf, size_t bufsize)
+void get_plot_details(struct graphics_context *gc, int time, char *buf, int bufsize)
{
struct plot_info *pi = &gc->pi;
int pressure = 0, temp = 0;