From: John Darrington Date: Sat, 29 Jun 2019 12:46:11 +0000 (+0200) Subject: Constness X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6efd60d06e1cbd3f6960f983acfaed5a66cb21c2;p=pspp Constness --- 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);