summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-07-12 13:38:46 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-07-12 14:45:46 +0200
commite3d769c16d22f42a2fa60ad5c375ffd7738a8a44 (patch)
tree1843421ab0400c64f8c8c1d27ef84a63ecccce8b /source
parent111dee34f42181678cb26835205cda2cdf1fa6d0 (diff)
downloadmupdf-e3d769c16d22f42a2fa60ad5c375ffd7738a8a44.tar.xz
Fix typo in fz_new_image_from_pixmap.
Diffstat (limited to 'source')
-rw-r--r--source/fitz/image.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/fitz/image.c b/source/fitz/image.c
index 330b65cf..e6772783 100644
--- a/source/fitz/image.c
+++ b/source/fitz/image.c
@@ -724,8 +724,7 @@ fz_new_image_from_pixmap(fz_context *ctx, fz_pixmap *pixmap, fz_image *mask)
fz_try(ctx)
{
image = (fz_pixmap_image *)
- fz_new_image(ctx, pixmap->w, pixmap->h,
- pixmap->n, pixmap->colorspace,
+ fz_new_image(ctx, pixmap->w, pixmap->h, 8, pixmap->colorspace,
pixmap->xres, pixmap->yres, 0, 0,
NULL, NULL, mask,
sizeof(fz_pixmap_image),