diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2011-04-03 15:17:00 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-04-03 16:01:34 +0200 |
commit | 8975aec496710bb9e35a4a1cb635ee0d4eaa60cc (patch) | |
tree | 02e02a337491fd66be2c60b0c8aa2b969ca47e69 /fitz | |
parent | 6af0abc477539365a19a4797babfd567da4d375f (diff) | |
download | mupdf-8975aec496710bb9e35a4a1cb635ee0d4eaa60cc.tar.xz |
xps: Use fz_pixmap directly instead of wrapping it in xps_image.
Diffstat (limited to 'fitz')
-rw-r--r-- | fitz/fitz.h | 1 | ||||
-rw-r--r-- | fitz/res_pixmap.c | 2 |
2 files changed, 3 insertions, 0 deletions
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; |