diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-06-16 16:32:08 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-06-17 14:53:20 +0200 |
commit | ccaf716d6c3f20731aaed277653cf3b1be4e218b (patch) | |
tree | 3cb2f6e7776007a66dd74ccf1323c17a2c597c2f /source/fitz/util.c | |
parent | 27269d493d66e16bfd7a5b5a0b09c4f21693260b (diff) | |
download | mupdf-ccaf716d6c3f20731aaed277653cf3b1be4e218b.tar.xz |
Add device space transform state to draw device.
Allows us to remove the out parameter 'transform' from fz_begin_page.
Diffstat (limited to 'source/fitz/util.c')
-rw-r--r-- | source/fitz/util.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source/fitz/util.c b/source/fitz/util.c index 01e52e91..425d2181 100644 --- a/source/fitz/util.c +++ b/source/fitz/util.c @@ -62,8 +62,8 @@ fz_new_pixmap_from_display_list(fz_context *ctx, fz_display_list *list, const fz fz_try(ctx) { - dev = fz_new_draw_device(ctx, pix); - fz_run_display_list(ctx, list, dev, ctm, NULL, NULL); + dev = fz_new_draw_device(ctx, ctm, pix); + fz_run_display_list(ctx, list, dev, &fz_identity, NULL, NULL); } fz_always(ctx) { @@ -95,8 +95,8 @@ fz_new_pixmap_from_page_contents(fz_context *ctx, fz_page *page, const fz_matrix fz_try(ctx) { - dev = fz_new_draw_device(ctx, pix); - fz_run_page_contents(ctx, page, dev, ctm, NULL); + dev = fz_new_draw_device(ctx, ctm, pix); + fz_run_page_contents(ctx, page, dev, &fz_identity, NULL); } fz_always(ctx) { @@ -128,8 +128,8 @@ fz_new_pixmap_from_annot(fz_context *ctx, fz_annot *annot, const fz_matrix *ctm, fz_try(ctx) { - dev = fz_new_draw_device(ctx, pix); - fz_run_annot(ctx, annot, dev, ctm, NULL); + dev = fz_new_draw_device(ctx, ctm, pix); + fz_run_annot(ctx, annot, dev, &fz_identity, NULL); } fz_always(ctx) { @@ -161,8 +161,8 @@ fz_new_pixmap_from_page(fz_context *ctx, fz_page *page, const fz_matrix *ctm, fz fz_try(ctx) { - dev = fz_new_draw_device(ctx, pix); - fz_run_page(ctx, page, dev, ctm, NULL); + dev = fz_new_draw_device(ctx, ctm, pix); + fz_run_page(ctx, page, dev, &fz_identity, NULL); } fz_always(ctx) { |