X-Git-Url: http://git.tdb.fi/?p=ext%2Fsubsurface.git;a=blobdiff_plain;f=print.c;h=bdebcfe15634fcf0bdda5fbe51e211ab42130495;hp=36ceca67e46a1456e3773ba83a40902826a60a48;hb=5487606fda75f133e26900aede1430b8929f8e18;hpb=1d36085b41f836c94549e04b8d06d1f880102655 diff --git a/print.c b/print.c index 36ceca6..bdebcfe 100644 --- a/print.c +++ b/print.c @@ -127,12 +127,13 @@ static void show_dive_text(struct dive *dive, cairo_t *cr, double w, double h, P static void show_dive_profile(struct dive *dive, cairo_t *cr, double w, double h) { + cairo_rectangle_int_t drawing_area = { w/20.0, h/20.0, w, h}; struct graphics_context gc = { .printer = 1, .cr = cr }; cairo_save(cr); - plot(&gc, w, h, dive); + plot(&gc, &drawing_area, dive); cairo_restore(cr); }