diff options
Diffstat (limited to 'fitz/filt_jpxd.c')
-rw-r--r-- | fitz/filt_jpxd.c | 4 |
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; |