From 6efd60d06e1cbd3f6960f983acfaed5a66cb21c2 Mon Sep 17 00:00:00 2001 From: John Darrington Date: Sat, 29 Jun 2019 14:46:11 +0200 Subject: [PATCH] Constness --- src/output/cairo.c | 2 +- src/output/cairo.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/output/cairo.c b/src/output/cairo.c index 56919b8d77..b3bb1de366 100644 --- a/src/output/cairo.c +++ b/src/output/cairo.c @@ -1648,7 +1648,7 @@ xr_rendering_destroy (struct xr_rendering *r) } void -xr_rendering_measure (struct xr_rendering *r, int *wp, int *hp) +xr_rendering_measure (const struct xr_rendering *r, int *wp, int *hp) { int w, h; diff --git a/src/output/cairo.h b/src/output/cairo.h index a5fea7f7f2..9ededdbf2c 100644 --- a/src/output/cairo.h +++ b/src/output/cairo.h @@ -41,7 +41,7 @@ struct xr_rendering *xr_rendering_create (struct xr_driver *, void xr_rendering_destroy (struct xr_rendering *); void xr_rendering_apply_options (struct xr_rendering *, struct string_map *o); -void xr_rendering_measure (struct xr_rendering *, int *w, int *h); +void xr_rendering_measure (const struct xr_rendering *, int *w, int *h); void xr_rendering_draw (struct xr_rendering *r, cairo_t *cr, int x0, int y0, int x1, int y1); -- 2.30.2