diff options
author | Adrian Johnson <ajohnson@redneon.com> | 2021-08-22 15:19:47 +0930 |
---|---|---|
committer | Adrian Johnson <ajohnson@redneon.com> | 2021-08-22 15:19:47 +0930 |
commit | ca3e776abe6744c94fb4dbff4533308a84661097 (patch) | |
tree | db4c3c52a6732d153f691afb002c36d2617bd12e /src/cairo-ps-surface.c | |
parent | 2dec76ddfe9499b5a6efc1ccc8e52536a314543b (diff) | |
download | cairo-ca3e776abe6744c94fb4dbff4533308a84661097.tar.gz |
Fix PS emit image for 16-bit images
Diffstat (limited to 'src/cairo-ps-surface.c')
-rw-r--r-- | src/cairo-ps-surface.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cairo-ps-surface.c b/src/cairo-ps-surface.c index c61c2246d..41f635d56 100644 --- a/src/cairo-ps-surface.c +++ b/src/cairo-ps-surface.c @@ -2607,7 +2607,6 @@ _cairo_ps_surface_emit_image (cairo_ps_surface_t *surface, surf = _cairo_image_surface_create_with_content (image->base.content, image->width, image->height); - image = (cairo_image_surface_t *) surf; if (surf->status) { status = surf->status; goto bail0; @@ -2618,6 +2617,7 @@ _cairo_ps_surface_emit_image (cairo_ps_surface_t *surface, CAIRO_OPERATOR_SOURCE, &pattern.base, NULL); _cairo_pattern_fini (&pattern.base); + image = (cairo_image_surface_t *) surf; if (unlikely (status)) goto bail0; } |