From 8975aec496710bb9e35a4a1cb635ee0d4eaa60cc Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Sun, 3 Apr 2011 15:17:00 +0200 Subject: xps: Use fz_pixmap directly instead of wrapping it in xps_image. --- fitz/fitz.h | 1 + fitz/res_pixmap.c | 2 ++ 2 files changed, 3 insertions(+) (limited to 'fitz') diff --git a/fitz/fitz.h b/fitz/fitz.h index d4ab8ff4..39542c0d 100644 --- a/fitz/fitz.h +++ b/fitz/fitz.h @@ -673,6 +673,7 @@ struct fz_pixmap_s int x, y, w, h, n; fz_pixmap *mask; /* explicit soft/image mask */ int interpolate; + int xres, yres; fz_colorspace *colorspace; unsigned char *samples; int freesamples; diff --git a/fitz/res_pixmap.c b/fitz/res_pixmap.c index 93fdb307..9f336ab1 100644 --- a/fitz/res_pixmap.c +++ b/fitz/res_pixmap.c @@ -13,6 +13,8 @@ fz_newpixmapwithdata(fz_colorspace *colorspace, int x, int y, int w, int h, unsi pix->h = h; pix->mask = nil; pix->interpolate = 1; + pix->xres = 96; + pix->yres = 96; pix->colorspace = nil; pix->n = 1; -- cgit v1.2.3