diff options
author | Robin Watts <robin.watts@artifex.com> | 2017-01-06 17:52:33 +0000 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2017-01-06 17:53:08 +0000 |
commit | cb91a7732e2e2475f4bcd5cea8ac847a78e24a66 (patch) | |
tree | e52b4281403d849c2481660c4f86d5ee65b791fa | |
parent | f913eac88483dddf479949ee4bd9845272e26b67 (diff) | |
download | mupdf-cb91a7732e2e2475f4bcd5cea8ac847a78e24a66.tar.xz |
Fix MSVC breakage.
-rw-r--r-- | source/fitz/pixmap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/fitz/pixmap.c b/source/fitz/pixmap.c index 156206f9..a8317127 100644 --- a/source/fitz/pixmap.c +++ b/source/fitz/pixmap.c @@ -110,9 +110,10 @@ fz_new_pixmap_with_bbox_and_data(fz_context *ctx, fz_colorspace *colorspace, con { int w = r->x1 - r->x0; int stride; + fz_pixmap *pixmap; if (!colorspace) alpha = 1; stride = (fz_colorspace_n(ctx, colorspace) + alpha) * w; - fz_pixmap *pixmap = fz_new_pixmap_with_data(ctx, colorspace, w, r->y1 - r->y0, alpha, stride, samples); + pixmap = fz_new_pixmap_with_data(ctx, colorspace, w, r->y1 - r->y0, alpha, stride, samples); pixmap->x = r->x0; pixmap->y = r->y0; return pixmap; |