summaryrefslogtreecommitdiffstats
path: root/print.c
diff options
context:
space:
mode:
authorGravatar Salvador Cuñat <salvador.cunat@gmail.com>2012-11-10 14:50:26 +0100
committerGravatar Dirk Hohndel <dirk@hohndel.org>2012-11-11 11:11:47 +0100
commitc0ebef92bf0065e9249fdac87443c7cedffc219f (patch)
treebaa43740ef8f224454c4f18ad78206d0b38a8cda /print.c
parent240ef9e9e5d0be37894ffa76dff36135fbf2bc19 (diff)
downloadsubsurface-c0ebef92bf0065e9249fdac87443c7cedffc219f.tar.gz
Draw a thin frame around dive prints
Just that trivial, simple and cosmetic thing. Signed-off-by: Salvador Cuñat <salvador.cunat@gmail.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'print.c')
-rw-r--r--print.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/print.c b/print.c
index ec07aa611..62317c15e 100644
--- a/print.c
+++ b/print.c
@@ -372,6 +372,12 @@ static void print_table(int divenr, cairo_t *cr, double x, double y,
if (!dive)
return;
cairo_save(cr);
+
+ /*Create a frame for each print x,y are provided in draw_page()*/
+ cairo_rectangle(cr, x, y, w, h);
+ cairo_set_line_width(cr, 0.01);
+ cairo_set_line_join(cr, CAIRO_LINE_JOIN_MITER);
+ cairo_stroke(cr);
cairo_translate(cr, x, y);
/* Plus 5% on all sides */