From: John Darrington Date: Sat, 9 Sep 2017 18:44:44 +0000 (+0200) Subject: src/output/cairo.c (xr_chart_renderer): Set the chart size to 0.8 of the smallest... X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?p=pspp;a=commitdiff_plain;h=d5a566a2900f69ab51c7dae78cd7810a4204589a src/output/cairo.c (xr_chart_renderer): Set the chart size to 0.8 of the smallest page dimension --- diff --git a/src/output/cairo.c b/src/output/cairo.c index 8cb504d2dd..ef0b593233 100644 --- a/src/output/cairo.c +++ b/src/output/cairo.c @@ -1542,7 +1542,7 @@ xr_chart_render (struct xr_render_fsm *fsm, struct xr_driver *xr) { struct xr_chart_state *cs = UP_CAST (fsm, struct xr_chart_state, fsm); - const int chart_height = xr->length; + const int chart_height = 0.8 * (xr->length < xr->width ? xr->length : xr->width); if (xr->y > xr->length - chart_height) return true;