diff options
author | Salvador Cuñat <salvador.cunat@gmail.com> | 2012-11-10 14:50:26 +0100 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2012-11-11 11:11:47 +0100 |
commit | c0ebef92bf0065e9249fdac87443c7cedffc219f (patch) | |
tree | baa43740ef8f224454c4f18ad78206d0b38a8cda /print.c | |
parent | 240ef9e9e5d0be37894ffa76dff36135fbf2bc19 (diff) | |
download | subsurface-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.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 */ |