[image] Do not trust user supplied data to be clear

Gah, more important than the whitespace was the reversal of is_clear...
This commit is contained in:
Chris Wilson 2009-09-23 18:08:34 +01:00
parent 03bce099ea
commit c8a4f48671

View file

@ -394,7 +394,7 @@ _cairo_image_surface_create_with_pixman_format (unsigned char *data,
}
/* we can not make any assumptions about the initial state of user data */
((cairo_image_surface_t *) surface)->is_clear = data != NULL;
((cairo_image_surface_t *) surface)->is_clear = data == NULL;
return surface;
}