diff options
Diffstat (limited to 'fitzdraw/meshdraw.c')
-rw-r--r-- | fitzdraw/meshdraw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fitzdraw/meshdraw.c b/fitzdraw/meshdraw.c index a204f889..d756db12 100644 --- a/fitzdraw/meshdraw.c +++ b/fitzdraw/meshdraw.c @@ -328,12 +328,12 @@ fz_rendershade(fz_shade *shade, fz_matrix ctm, fz_colorspace *destcs, fz_pixmap if (shade->usefunction) { n = 3; - temp = fz_newpixmap(dest->x, dest->y, dest->w, dest->h, 2); + temp = fz_newpixmap(pdf_devicegray, dest->x, dest->y, dest->w, dest->h); } else if (shade->cs != destcs) { n = 2 + shade->cs->n; - temp = fz_newpixmap(dest->x, dest->y, dest->w, dest->h, shade->cs->n + 1); + temp = fz_newpixmap(shade->cs, dest->x, dest->y, dest->w, dest->h); } else { |