From 42e89d924112d0aea66245f46b8a25ab120c44da Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 8 Apr 2011 22:25:39 +0200 Subject: Simplify arguments to fz_new_pixmap. --- apps/pdfextract.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps') 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; -- cgit v1.2.3