From f957eae764e6dbc74401b66d6a18ba3290fdb982 Mon Sep 17 00:00:00 2001 From: Robin Watts Date: Mon, 3 Jul 2017 18:33:48 +0100 Subject: Add spots to fz_pixmaps. Update separations interface further to cope with whether spots should be rendered separately, or as composite colors. --- source/tools/mudraw.c | 4 ++-- source/tools/muraster.c | 4 ++-- source/tools/murun.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'source/tools') diff --git a/source/tools/mudraw.c b/source/tools/mudraw.c index 1579e905..1959dddc 100644 --- a/source/tools/mudraw.c +++ b/source/tools/mudraw.c @@ -774,7 +774,7 @@ static void dodrawpage(fz_context *ctx, fz_page *page, fz_display_list *list, in workers[band].tbounds = tbounds; memset(&workers[band].cookie, 0, sizeof(fz_cookie)); workers[band].list = list; - workers[band].pix = fz_new_pixmap_with_bbox(ctx, colorspace, &band_ibounds, alpha); + workers[band].pix = fz_new_pixmap_with_bbox(ctx, colorspace, &band_ibounds, NULL, alpha); fz_set_pixmap_resolution(ctx, workers[band].pix, resolution, resolution); #ifndef DISABLE_MUTHREADS DEBUG_THREADS(("Worker %d, Pre-triggering band %d\n", band, band)); @@ -786,7 +786,7 @@ static void dodrawpage(fz_context *ctx, fz_page *page, fz_display_list *list, in } else { - pix = fz_new_pixmap_with_bbox(ctx, colorspace, &band_ibounds, alpha); + pix = fz_new_pixmap_with_bbox(ctx, colorspace, &band_ibounds, NULL, alpha); fz_set_pixmap_resolution(ctx, pix, resolution, resolution); } diff --git a/source/tools/muraster.c b/source/tools/muraster.c index 77d60b8f..cbc8be27 100644 --- a/source/tools/muraster.c +++ b/source/tools/muraster.c @@ -601,7 +601,7 @@ static int dodrawpage(fz_context *ctx, int pagenum, fz_cookie *cookie, render_de if (remaining_height < band_height) ibounds.y1 = ibounds.y0 + remaining_height; remaining_height -= band_height; - w->pix = fz_new_pixmap_with_bbox(ctx, colorspace, &ibounds, 0); + w->pix = fz_new_pixmap_with_bbox(ctx, colorspace, &ibounds, NULL, 0); fz_set_pixmap_resolution(ctx, w->pix, x_resolution, y_resolution); DEBUG_THREADS(("Worker %d, Pre-triggering band %d\n", band, band)); w->started = 1; @@ -612,7 +612,7 @@ static int dodrawpage(fz_context *ctx, int pagenum, fz_cookie *cookie, render_de } else { - pix = fz_new_pixmap_with_bbox(ctx, colorspace, &ibounds, 0); + pix = fz_new_pixmap_with_bbox(ctx, colorspace, &ibounds, NULL, 0); fz_set_pixmap_resolution(ctx, pix, x_resolution, y_resolution); } fz_write_header(ctx, render->bander, pix->w, total_height, pix->n, pix->alpha, pix->xres, pix->yres, pagenum, pix->colorspace); diff --git a/source/tools/murun.c b/source/tools/murun.c index ec9a93e3..cd000632 100644 --- a/source/tools/murun.c +++ b/source/tools/murun.c @@ -2024,7 +2024,7 @@ static void ffi_new_Pixmap(js_State *J) fz_pixmap *pixmap; fz_try(ctx) - pixmap = fz_new_pixmap_with_bbox(ctx, colorspace, &bounds, alpha); + pixmap = fz_new_pixmap_with_bbox(ctx, colorspace, &bounds, 0, alpha); fz_catch(ctx) rethrow(J); -- cgit v1.2.3