diff options
author | Tor Andersson <tor@ghostscript.com> | 2004-10-19 04:07:51 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2004-10-19 04:07:51 +0200 |
commit | 3342d0657522d6b3acaae5216b7026165154ab52 (patch) | |
tree | c4b06d02c86944a6d835b3614873a0f6ce113cd6 /render/pixmap.c | |
parent | bbf53bb5172130d375ac4e6214c685d24120204b (diff) | |
download | mupdf-3342d0657522d6b3acaae5216b7026165154ab52.tar.xz |
moved cidtogid into pdf_font, added colorspaces and pdf_page object
Diffstat (limited to 'render/pixmap.c')
-rw-r--r-- | render/pixmap.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/render/pixmap.c b/render/pixmap.c index 0902c901..5dd8bcda 100644 --- a/render/pixmap.c +++ b/render/pixmap.c @@ -1,7 +1,7 @@ #include <fitz.h> fz_error * -fz_newpixmap(fz_pixmap **pixp, int x, int y, int w, int h, int n, int a) +fz_newpixmap(fz_pixmap **pixp, fz_colorspace *cs, int x, int y, int w, int h, int n, int a) { fz_pixmap *pix; @@ -9,13 +9,13 @@ fz_newpixmap(fz_pixmap **pixp, int x, int y, int w, int h, int n, int a) if (!pix) return fz_outofmem; + pix->cs = cs; pix->x = x; pix->y = y; pix->w = w; pix->h = h; pix->n = n; pix->a = a; - pix->cs = nil; pix->stride = (pix->n + pix->a) * pix->w; pix->samples = fz_malloc(sizeof(short) * pix->stride * pix->h); @@ -83,7 +83,7 @@ fz_debugpixmap(fz_pixmap *pix) void fz_blendover(fz_pixmap *src, fz_pixmap *dst) { - int x, y, k; + int x, y; assert(dst->n == src->n); assert(dst->a == 1); |