summaryrefslogtreecommitdiff
path: root/src/cairo-png.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2010-02-23 21:01:13 +0100
committerBenjamin Otte <otte@redhat.com>2010-02-23 21:03:31 +0100
commit8bb06915ed6628c6d8978b6c2fec474bbf08d7e9 (patch)
tree8e1e9bc1a1bb0e68f1963e260f2b130975d9d9b0 /src/cairo-png.c
parentb7c42b6aaa2dba09ed3ff9ae85eae27bec268713 (diff)
downloadcairo-8bb06915ed6628c6d8978b6c2fec474bbf08d7e9.tar.gz
image: split cairo_image_surface_coerce()
Split into a general cairo_image_surface_coerce() that coerces to one of the 3 supported formats (ARGB32, RGB24, A8) based on content and the more general cairo_image_surface_coerce_to_format() that coerces to a specified format.
Diffstat (limited to 'src/cairo-png.c')
-rw-r--r--src/cairo-png.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/cairo-png.c b/src/cairo-png.c
index ecb27d84b..8b9b43c70 100644
--- a/src/cairo-png.c
+++ b/src/cairo-png.c
@@ -172,8 +172,7 @@ write_png (cairo_surface_t *surface,
/* Handle the various fallback formats (e.g. low bit-depth XServers)
* by coercing them to a simpler format using pixman.
*/
- clone = _cairo_image_surface_coerce (image,
- _cairo_format_from_content (image->base.content));
+ clone = _cairo_image_surface_coerce (image);
status = clone->base.status;
if (unlikely (status))
goto BAIL1;