Skip to content

Commit

Permalink
ps/pdf: fix the polarity of stencil masks
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Johnson committed Sep 6, 2011
1 parent a7ed3dd commit d47e05f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/cairo-pdf-surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1972,7 +1972,8 @@ _cairo_pdf_surface_emit_smask (cairo_pdf_surface_t *surface,
" /ImageMask true\n"
" /Width %d\n"
" /Height %d\n"
" /BitsPerComponent 1\n",
" /BitsPerComponent 1\n"
" /Decode [1 0]\n",
image->width, image->height);
} else {
stream_res->id = 0;
Expand Down
2 changes: 1 addition & 1 deletion src/cairo-ps-surface.c
Original file line number Diff line number Diff line change
Expand Up @@ -2453,7 +2453,7 @@ _cairo_ps_surface_emit_image (cairo_ps_surface_t *surface,
ps_image->height,
interpolate,
color == CAIRO_IMAGE_IS_MONOCHROME ? 1 : 8,
color == CAIRO_IMAGE_IS_COLOR ? "0 1 0 1 0 1" : "0 1");
stencil_mask ? "1 0" : color == CAIRO_IMAGE_IS_COLOR ? "0 1 0 1 0 1" : "0 1");
if (surface->use_string_datasource) {
_cairo_output_stream_printf (surface->stream,
" /DataSource {\n"
Expand Down

0 comments on commit d47e05f

Please sign in to comment.