diff options
author | Tor Andersson <tor@ghostscript.com> | 2004-11-16 08:58:17 +0100 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2004-11-16 08:58:17 +0100 |
commit | 3b425b8bf0c58e25da576ed86496171ea19240f9 (patch) | |
tree | 37d6feb715dd929392fb16fdde6cf994dfbc1397 /test | |
parent | 49132f70ac40b2dc7b9a0e22b33a3964af687874 (diff) | |
download | mupdf-3b425b8bf0c58e25da576ed86496171ea19240f9.tar.xz |
removed c99-isms. improved bbox handling.
Diffstat (limited to 'test')
-rw-r--r-- | test/pdfclean.c | 1 | ||||
-rw-r--r-- | test/pdfrip.c | 2 | ||||
-rw-r--r-- | test/x11pdf.c | 2 |
3 files changed, 2 insertions, 3 deletions
diff --git a/test/pdfclean.c b/test/pdfclean.c index b8102d2c..32acacd9 100644 --- a/test/pdfclean.c +++ b/test/pdfclean.c @@ -158,7 +158,6 @@ int main(int argc, char **argv) } error = pdf_savepdf(xref, outfile, encrypt); -// error = pdf_saveincrementalpdf(xref, infile); if (error) fz_abort(error); diff --git a/test/pdfrip.c b/test/pdfrip.c index a4bce202..b04ccf3e 100644 --- a/test/pdfrip.c +++ b/test/pdfrip.c @@ -167,7 +167,7 @@ printf("rendering!\n"); bbox.min.y = bbox.min.y * zoom; bbox.max.x = bbox.max.x * zoom; bbox.max.y = bbox.max.y * zoom; - error = fz_rendertree(&pix, gc, page->tree, ctm, bbox); + error = fz_rendertree(&pix, gc, page->tree, ctm, fz_roundrect(bbox)); if (error) fz_abort(error); printf("done!\n"); diff --git a/test/x11pdf.c b/test/x11pdf.c index 83b340b1..58655f8a 100644 --- a/test/x11pdf.c +++ b/test/x11pdf.c @@ -164,7 +164,7 @@ static void showpage(void) bbox = fz_transformaabb(ctm, page->mediabox); - error = fz_rendertree(&image, rast, page->tree, ctm, bbox); + error = fz_rendertree(&image, rast, page->tree, ctm, fz_roundrect(bbox)); if (error) fz_abort(error); |