summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
cfcc811)
We don't actually use the 'dive' structure any more, since we now always
have the sample pointers directly.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
plot_text(gc, &tro, sec, depth.mm, fmt, d);
}
plot_text(gc, &tro, sec, depth.mm, fmt, d);
}
-
-void plot_text_samples(struct dive *dive, struct graphics_context *gc,
- struct sample *a, struct sample *b)
+static void plot_text_samples(struct graphics_context *gc, struct sample *a, struct sample *b)
{
struct sample *max, *min;
{
struct sample *max, *min;
render_depth_sample(gc, max);
min = next_minmax(max, b, 0);
if (min) {
render_depth_sample(gc, max);
min = next_minmax(max, b, 0);
if (min) {
- plot_text_samples(dive, gc, min, b);
+ plot_text_samples(gc, min, b);
sample = dive->sample;
end = dive->sample + dive->samples - 1;
sample = dive->sample;
end = dive->sample + dive->samples - 1;
- plot_text_samples(dive, gc, sample, end);
+ plot_text_samples(gc, sample, end);
}
static void plot_depth_profile(struct dive *dive, struct graphics_context *gc)
}
static void plot_depth_profile(struct dive *dive, struct graphics_context *gc)