From c0ebef92bf0065e9249fdac87443c7cedffc219f Mon Sep 17 00:00:00 2001 From: Salvador Cuñat Date: Sat, 10 Nov 2012 14:50:26 +0100 Subject: Draw a thin frame around dive prints MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Just that trivial, simple and cosmetic thing. Signed-off-by: Salvador Cuñat Signed-off-by: Dirk Hohndel --- print.c | 6 ++++++ 1 file changed, 6 insertions(+) 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 */ -- cgit v1.2.3-70-g09d2