Add const to _cairo_surface_is_image parameter

This commit is contained in:
Keith Packard 2005-10-09 20:31:44 +00:00
parent 2a3593e35c
commit a0e970fad2
3 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2005-10-09 Keith Packard <keithp@keithp.com>
* src/cairo-image-surface.c: (_cairo_surface_is_image):
* src/cairoint.h:
Add const to _cairo_surface_is_image parameter
2005-10-09 Billy Biggs <vektor@dumbterm.net>
* test/Makefile.am: Add a new test to start investigating bug 4183.

View file

@ -853,7 +853,7 @@ _cairo_image_abstract_surface_get_extents (void *abstract_surface,
* Return value: TRUE if the surface is an image surface
**/
cairo_bool_t
_cairo_surface_is_image (cairo_surface_t *surface)
_cairo_surface_is_image (const cairo_surface_t *surface)
{
return surface->backend == &cairo_image_surface_backend;
}

View file

@ -1716,7 +1716,7 @@ _cairo_image_surface_set_clip_region (cairo_image_surface_t *surface,
pixman_region16_t *region);
cairo_private cairo_bool_t
_cairo_surface_is_image (cairo_surface_t *surface);
_cairo_surface_is_image (const cairo_surface_t *surface);
/* cairo_pen.c */
cairo_private cairo_status_t