summaryrefslogtreecommitdiff
path: root/src/charts.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/charts.c')
-rw-r--r--src/charts.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/charts.c b/src/charts.c
index b25f548..25f2fb6 100644
--- a/src/charts.c
+++ b/src/charts.c
@@ -1198,8 +1198,8 @@ void vwm_chart_render_as_pixmap(vwm_charts_t *charts, vwm_chart_t *chart, const
if (!bg_color)
bg_color = &blackness;
- dest = create_picture_fill(charts, chart->width, chart->height, 32, 0, NULL, bg_color, res_pixmap);
- vwm_chart_render(charts, chart, PictOpOver, dest, 0, 0, chart->width, chart->height);
+ dest = create_picture_fill(charts, chart->width, vwm_chart_composed_height(charts, chart), 32, 0, NULL, bg_color, res_pixmap);
+ vwm_chart_render(charts, chart, PictOpOver, dest, 0, 0, chart->width, vwm_chart_composed_height(charts, chart));
XRenderFreePicture(charts->xserver->display, dest);
}
@@ -1218,7 +1218,7 @@ void vwm_chart_render_as_ximage(vwm_charts_t *charts, vwm_chart_t *chart, const
0,
0,
chart->width,
- chart->height,
+ vwm_chart_composed_height(charts, chart),
AllPlanes,
ZPixmap);
© All Rights Reserved