diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2009-09-23 17:56:00 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2009-09-23 17:56:00 +0100 |
commit | 03bce099eae68643979e5742b2703b2b2e835cca (patch) | |
tree | 8a600dc84b3a1f6f62248989d918bec063c077bf /src | |
parent | ab558fa843accc440686f7b8eda197277a6a4eb2 (diff) |
[image] Tweak coding style
Whitespace spam.
Diffstat (limited to 'src')
-rw-r--r-- | src/cairo-image-surface.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/cairo-image-surface.c b/src/cairo-image-surface.c index 9156349b..ecc042b1 100644 --- a/src/cairo-image-surface.c +++ b/src/cairo-image-surface.c @@ -388,12 +388,13 @@ _cairo_image_surface_create_with_pixman_format (unsigned char *data, surface = _cairo_image_surface_create_for_pixman_image (pixman_image, pixman_format); - if (cairo_surface_status (surface)) + if (unlikely (surface->status)) { pixman_image_unref (pixman_image); - else - /* we can not make any assumptions by the initial state of the data */ - ((cairo_image_surface_t *)surface)->is_clear = (data != NULL); + return surface; + } + /* we can not make any assumptions about the initial state of user data */ + ((cairo_image_surface_t *) surface)->is_clear = data != NULL; return surface; } |