summaryrefslogtreecommitdiffstats
path: root/print.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-20 17:20:54 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-20 17:24:10 -0700
commit368623113c7f457e372bb1c4968fb2445cac62a1 (patch)
tree5b5ed6d77064f614b42d1cf910bea106289129d1 /print.c
parent9cfe9aa8cde394aef61be4d50de73562a5ac1c6f (diff)
downloadsubsurface-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 'print.c')
-rw-r--r--print.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/print.c b/print.c
index a16ddb76b..4848dfa48 100644
--- a/print.c
+++ b/print.c
@@ -23,8 +23,11 @@ static void print(int divenr, cairo_t *cr, double x, double y, double w, double
cairo_save(cr);
cairo_translate(cr, x, y);
- /* Dive plot in the upper half */
- show_one_dive(dive, cr, w, h/2);
+ /* We actually want to scale the text and the lines now */
+ cairo_scale(cr, 0.5, 0.5);
+
+ /* Dive plot in the upper half - note the scaling */
+ show_one_dive(dive, cr, w*2, h);
/* Dive information in the lower half */