summaryrefslogtreecommitdiff
path: root/fitz/filt_jpxd.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2011-04-08 22:25:39 +0200
committerTor Andersson <tor.andersson@artifex.com>2011-04-08 22:25:39 +0200
commit42e89d924112d0aea66245f46b8a25ab120c44da (patch)
tree094892cdaf9f1087599aa9b6bd53b052015d54a5 /fitz/filt_jpxd.c
parentae039a6b71fb9afddd29cf289e0f9a2be23803c5 (diff)
downloadmupdf-42e89d924112d0aea66245f46b8a25ab120c44da.tar.xz
Simplify arguments to fz_new_pixmap.
Diffstat (limited to 'fitz/filt_jpxd.c')
-rw-r--r--fitz/filt_jpxd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fitz/filt_jpxd.c b/fitz/filt_jpxd.c
index d43ee4c4..4fb8264d 100644
--- a/fitz/filt_jpxd.c
+++ b/fitz/filt_jpxd.c
@@ -108,7 +108,7 @@ fz_load_jpx_image(fz_pixmap **imgp, unsigned char *data, int size, fz_colorspace
}
}
- img = fz_new_pixmap(colorspace, 0, 0, w, h);
+ img = fz_new_pixmap(colorspace, w, h);
p = img->samples;
for (y = 0; y < h; y++)
@@ -133,7 +133,7 @@ fz_load_jpx_image(fz_pixmap **imgp, unsigned char *data, int size, fz_colorspace
{
if (n == 4)
{
- fz_pixmap *tmp = fz_new_pixmap(fz_device_rgb, 0, 0, w, h);
+ fz_pixmap *tmp = fz_new_pixmap(fz_device_rgb, w, h);
fz_convert_pixmap(img, tmp);
fz_drop_pixmap(img);
img = tmp;