summaryrefslogtreecommitdiff
path: root/source/tools/mudraw.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-04-25 15:35:32 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-04-26 15:12:57 +0200
commitc304a128c51939dd507b2cb87c89daf56a659388 (patch)
treeb9d5b78cf6e6acb1466c9061191c4ecdea986df6 /source/tools/mudraw.c
parent34bf864107a499d55383ad5709082dbc2e2864df (diff)
downloadmupdf-c304a128c51939dd507b2cb87c89daf56a659388.tar.xz
Change order of arguments to pdf_add_page etc.
Resources are defined before they are used; so it's only logical to have the resource dictionary before the content buffer in the argument list.
Diffstat (limited to 'source/tools/mudraw.c')
-rw-r--r--source/tools/mudraw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/tools/mudraw.c b/source/tools/mudraw.c
index 9e45a4b1..1effc070 100644
--- a/source/tools/mudraw.c
+++ b/source/tools/mudraw.c
@@ -641,7 +641,7 @@ static void drawpage(fz_context *ctx, fz_document *doc, int pagenum)
fz_buffer *contents;
pdf_obj *resources;
- dev = pdf_page_write(ctx, pdfout, &mediabox, &contents, &resources);
+ dev = pdf_page_write(ctx, pdfout, &mediabox, &resources, &contents);
fz_try(ctx)
{
pdf_obj *page_obj;
@@ -651,7 +651,7 @@ static void drawpage(fz_context *ctx, fz_document *doc, int pagenum)
else
fz_run_page(ctx, page, dev, &fz_identity, &cookie);
- page_obj = pdf_add_page(ctx, pdfout, &mediabox, rotation, contents, resources);
+ page_obj = pdf_add_page(ctx, pdfout, &mediabox, rotation, resources, contents);
pdf_insert_page(ctx, pdfout, -1, page_obj);
pdf_drop_obj(ctx, page_obj);
}