diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-04-08 22:25:39 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-04-08 22:25:39 +0200 |
commit | 42e89d924112d0aea66245f46b8a25ab120c44da (patch) | |
tree | 094892cdaf9f1087599aa9b6bd53b052015d54a5 /apps | |
parent | ae039a6b71fb9afddd29cf289e0f9a2be23803c5 (diff) | |
download | mupdf-42e89d924112d0aea66245f46b8a25ab120c44da.tar.xz |
Simplify arguments to fz_new_pixmap.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/pdfextract.c | 2 |
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; |