X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Foutput%2Fcairo.c;h=ef0b593233e67f7e03867926d35753536314166f;hb=38f1759deae638712ed86675914c123ffb04f5ba;hp=8cb504d2dd0e877309fb916a241e69439de031bc;hpb=19616643b06c6f27463ecbd725ae25be0bf1cfd1;p=pspp 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;