summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTor Andersson <tor@ghostscript.com>2004-11-16 08:58:17 +0100
committerTor Andersson <tor@ghostscript.com>2004-11-16 08:58:17 +0100
commit3b425b8bf0c58e25da576ed86496171ea19240f9 (patch)
tree37d6feb715dd929392fb16fdde6cf994dfbc1397 /test
parent49132f70ac40b2dc7b9a0e22b33a3964af687874 (diff)
downloadmupdf-3b425b8bf0c58e25da576ed86496171ea19240f9.tar.xz
removed c99-isms. improved bbox handling.
Diffstat (limited to 'test')
-rw-r--r--test/pdfclean.c1
-rw-r--r--test/pdfrip.c2
-rw-r--r--test/x11pdf.c2
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);