diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-20 17:20:54 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-09-20 17:24:10 -0700 |
commit | 368623113c7f457e372bb1c4968fb2445cac62a1 (patch) | |
tree | 5b5ed6d77064f614b42d1cf910bea106289129d1 /profile.c | |
parent | 9cfe9aa8cde394aef61be4d50de73562a5ac1c6f (diff) | |
download | subsurface-368623113c7f457e372bb1c4968fb2445cac62a1.tar.gz |
Print out only simplified depth profile
None of the colors, nothing like that. Just a gray fill and a plain
black depth line.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'profile.c')
-rw-r--r-- | profile.c | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -313,6 +313,13 @@ static void plot_depth_profile(struct graphics_context *gc, struct plot_info *pi for (i = 0; i < pi->nr; i++, entry++) line_to(gc, entry->sec, entry->val); cairo_close_path(gc->cr); + if (gc->printer) { + set_source_rgba(gc, 1, 1, 1, 0.2); + cairo_fill_preserve(cr); + set_source_rgb(gc, 1, 1, 1); + cairo_stroke(cr); + return; + } cairo_fill(gc->cr); /* Now do it again for the velocity colors */ |