summaryrefslogtreecommitdiff
path: root/source/tools
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2017-07-03 18:33:48 +0100
committerRobin Watts <robin.watts@artifex.com>2017-07-19 19:41:23 +0100
commitf957eae764e6dbc74401b66d6a18ba3290fdb982 (patch)
tree224513a5080adde16386669feb0881aefe75794a /source/tools
parent3d6cf4e4e543ce0d204db71ef8d0b9277219f250 (diff)
downloadmupdf-f957eae764e6dbc74401b66d6a18ba3290fdb982.tar.xz
Add spots to fz_pixmaps.
Update separations interface further to cope with whether spots should be rendered separately, or as composite colors.
Diffstat (limited to 'source/tools')
-rw-r--r--source/tools/mudraw.c4
-rw-r--r--source/tools/muraster.c4
-rw-r--r--source/tools/murun.c2
3 files changed, 5 insertions, 5 deletions
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);