summaryrefslogtreecommitdiffstats
path: root/print.c
diff options
context:
space:
mode:
authorGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-13 19:49:48 -0700
committerGravatar Linus Torvalds <torvalds@linux-foundation.org>2011-09-13 19:49:48 -0700
commita0096f3a6b2f8723b9f020ac53b22c432c5a61c7 (patch)
treedfcbc31f6b26e91b1c57820dcd673cd3ff59bba0 /print.c
parentce86289eed0651c846a609743d77e26cacbcfde6 (diff)
downloadsubsurface-a0096f3a6b2f8723b9f020ac53b22c432c5a61c7.tar.gz
Make the printout look different
Not *better* mint you. Just different. I suck at graphs. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'print.c')
-rw-r--r--print.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/print.c b/print.c
index c2114d56c..0fe958a00 100644
--- a/print.c
+++ b/print.c
@@ -11,7 +11,7 @@ static void draw_page(GtkPrintOperation *operation,
cairo_t *cr;
PangoLayout *layout;
double w, h;
- struct graphics_context gc = { 0 };
+ struct graphics_context gc = { .printer = 1 };
cr = gtk_print_context_get_cairo_context(context);
gc.cr = cr;
@@ -21,11 +21,8 @@ static void draw_page(GtkPrintOperation *operation,
w = gtk_print_context_get_width(context);
h = gtk_print_context_get_height(context);
- /* Do the profile on the top third of the page.. */
- cairo_set_source_rgb(cr, 0, 0, 0);
- cairo_rectangle(cr, 0, 0, w, h/3);
- cairo_fill(cr);
- plot(&gc, w, h/3, current_dive);
+ /* Do the profile on the top half of the page.. */
+ plot(&gc, w, h/2, current_dive);
pango_cairo_show_layout(cr,layout);
g_object_unref(layout);