mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
688276b6f2
commit
6f06c31d0b
5 changed files with 103 additions and 98 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue