diff options
author | Jinghua Luo <sunmoon1997@gmail.com> | 2007-05-08 13:24:40 +0800 |
---|---|---|
committer | Jinghua Luo <sunmoon1997@gmail.com> | 2007-05-08 13:24:40 +0800 |
commit | 936c965777c867bd4de7fd2278335837cc24eb22 (patch) | |
tree | 48807af0d249e00b9b33881c7e750747da53a3e6 /src/cairo-glitz-surface.c | |
parent | 413705872e321288bff1368c62eacad11805c2fc (diff) |
glitz: kill some compiler warnings.
Diffstat (limited to 'src/cairo-glitz-surface.c')
-rw-r--r-- | src/cairo-glitz-surface.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/cairo-glitz-surface.c b/src/cairo-glitz-surface.c index b212a697..031c0814 100644 --- a/src/cairo-glitz-surface.c +++ b/src/cairo-glitz-surface.c @@ -668,7 +668,7 @@ _cairo_glitz_pattern_acquire_surface (cairo_pattern_t *pattern, } glitz_set_pixels (src->surface, 0, 0, gradient->n_stops, 1, - &format, buffer); + (glitz_pixel_format_t *)&format, buffer); glitz_buffer_destroy (buffer); @@ -1292,7 +1292,14 @@ _cairo_glitz_surface_set_clip_region (void *abstract_surface, surface->has_clip = TRUE; } - pixman_region_copy (&surface->clip, region); + if (pixman_region_copy (&surface->clip, region) != + PIXMAN_REGION_STATUS_SUCCESS) + { + pixman_region_fini (&surface->clip); + surface->has_clip = FALSE; + return CAIRO_STATUS_NO_MEMORY; + } + box = (glitz_box_t *) pixman_region_rects (&surface->clip); n = pixman_region_num_rects (&surface->clip); |