summaryrefslogtreecommitdiff
path: root/draw/draw_scale.c
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 /draw/draw_scale.c
parentae039a6b71fb9afddd29cf289e0f9a2be23803c5 (diff)
downloadmupdf-42e89d924112d0aea66245f46b8a25ab120c44da.tar.xz
Simplify arguments to fz_new_pixmap.
Diffstat (limited to 'draw/draw_scale.c')
-rw-r--r--draw/draw_scale.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/draw/draw_scale.c b/draw/draw_scale.c
index f66974d3..a6fb2817 100644
--- a/draw/draw_scale.c
+++ b/draw/draw_scale.c
@@ -1090,9 +1090,9 @@ fz_scale_pixmap(fz_pixmap *src, float x, float y, float w, float h)
assert(contrib_cols == NULL || contrib_cols->count == dst_w_int);
assert(contrib_rows == NULL || contrib_rows->count == dst_h_int);
- output = fz_new_pixmap(src->colorspace, dst_x_int, dst_y_int, dst_w_int, dst_h_int);
- if (output == NULL)
- goto cleanup;
+ output = fz_new_pixmap(src->colorspace, dst_w_int, dst_h_int);
+ output->x = dst_x_int;
+ output->y = dst_y_int;
/* Step 2: Apply the weights */
#ifdef SINGLE_PIXEL_SPECIALS