summaryrefslogtreecommitdiff
path: root/apps
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 /apps
parentae039a6b71fb9afddd29cf289e0f9a2be23803c5 (diff)
downloadmupdf-42e89d924112d0aea66245f46b8a25ab120c44da.tar.xz
Simplify arguments to fz_new_pixmap.
Diffstat (limited to 'apps')
-rw-r--r--apps/pdfextract.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/pdfextract.c b/apps/pdfextract.c
index 45185cee..7e6e4ace 100644
--- a/apps/pdfextract.c
+++ b/apps/pdfextract.c
@@ -54,7 +54,7 @@ static void saveimage(int num)
if (dorgb && img->colorspace && img->colorspace != fz_device_rgb)
{
fz_pixmap *temp;
- temp = fz_new_pixmap(fz_device_rgb, img->x, img->y, img->w, img->h);
+ temp = fz_new_pixmap_with_rect(fz_device_rgb, fz_bound_pixmap(img));
fz_convert_pixmap(img, temp);
fz_drop_pixmap(img);
img = temp;