mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-30 22:20:21 +00:00
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>
This commit is contained in:
parent
240ef9e9e5
commit
c0ebef92bf
1 changed files with 6 additions and 0 deletions
6
print.c
6
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 */
|
||||
|
|
Loading…
Reference in a new issue