Constness
authorJohn Darrington <john@darrington.wattle.id.au>
Sat, 29 Jun 2019 12:46:11 +0000 (14:46 +0200)
committerJohn Darrington <john@darrington.wattle.id.au>
Sat, 29 Jun 2019 12:46:11 +0000 (14:46 +0200)
src/output/cairo.c
src/output/cairo.h

index 56919b8d77970a4b2550c4d8b9a084edf7a92728..b3bb1de36691556913c87554df4dde005bb51183 100644 (file)
@@ -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;
 
index a5fea7f7f244d7aedf00a903f5ed0c3adf3a6210..9ededdbf2cadb296f042a5d06a51e15539955b97 100644 (file)
@@ -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);