summaryrefslogtreecommitdiff
path: root/source/fitz/draw-device.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2013-06-20 15:02:08 +0200
committerTor Andersson <tor.andersson@artifex.com>2013-06-20 16:46:10 +0200
commit73f5ba5cb7520a01d5bc4d85358f21d298d33317 (patch)
treed91890b7ccdbb59ff992d96f281bcb2a88ca2292 /source/fitz/draw-device.c
parent643370f04348569b5e5e577660031d638537671c (diff)
downloadmupdf-73f5ba5cb7520a01d5bc4d85358f21d298d33317.tar.xz
Rename fz_image_to_pixmap to fz_new_pixmap_from_image.
Match our naming conventions.
Diffstat (limited to 'source/fitz/draw-device.c')
-rw-r--r--source/fitz/draw-device.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/fitz/draw-device.c b/source/fitz/draw-device.c
index e993daf7..bdafc4d5 100644
--- a/source/fitz/draw-device.c
+++ b/source/fitz/draw-device.c
@@ -1095,7 +1095,7 @@ fz_draw_fill_image(fz_device *devp, fz_image *image, const fz_matrix *ctm, float
dx = sqrtf(local_ctm.a * local_ctm.a + local_ctm.b * local_ctm.b);
dy = sqrtf(local_ctm.c * local_ctm.c + local_ctm.d * local_ctm.d);
- pixmap = fz_image_to_pixmap(ctx, image, dx, dy);
+ pixmap = fz_new_pixmap_from_image(ctx, image, dx, dy);
orig_pixmap = pixmap;
/* convert images with more components (cmyk->rgb) before scaling */
@@ -1196,7 +1196,7 @@ fz_draw_fill_image_mask(fz_device *devp, fz_image *image, const fz_matrix *ctm,
dx = sqrtf(local_ctm.a * local_ctm.a + local_ctm.b * local_ctm.b);
dy = sqrtf(local_ctm.c * local_ctm.c + local_ctm.d * local_ctm.d);
- pixmap = fz_image_to_pixmap(ctx, image, dx, dy);
+ pixmap = fz_new_pixmap_from_image(ctx, image, dx, dy);
orig_pixmap = pixmap;
fz_try(ctx)
@@ -1299,7 +1299,7 @@ fz_draw_clip_image_mask(fz_device *devp, fz_image *image, const fz_rect *rect, c
fz_try(ctx)
{
- pixmap = fz_image_to_pixmap(ctx, image, dx, dy);
+ pixmap = fz_new_pixmap_from_image(ctx, image, dx, dy);
orig_pixmap = pixmap;
state[1].mask = mask = fz_new_pixmap_with_bbox(dev->ctx, NULL, &bbox);