diff options
author | Tor Andersson <tor.andersson@artifex.com> | 2016-06-16 16:34:17 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2016-06-17 14:53:21 +0200 |
commit | 602cc73633568beec1afe7068bb3a1040b20bba0 (patch) | |
tree | 84cb02e9c58af4e70e36b7a0878b0de1d49f6ec4 /source/fitz/util.c | |
parent | ccaf716d6c3f20731aaed277653cf3b1be4e218b (diff) | |
download | mupdf-602cc73633568beec1afe7068bb3a1040b20bba0.tar.xz |
Add mediabox argument to fz_new_display_list.
To return the proper size from fz_bound_display_list, which has been
broken since the begin_page device call was removed.
Diffstat (limited to 'source/fitz/util.c')
-rw-r--r-- | source/fitz/util.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/fitz/util.c b/source/fitz/util.c index 425d2181..d17cb18c 100644 --- a/source/fitz/util.c +++ b/source/fitz/util.c @@ -4,9 +4,10 @@ fz_display_list * fz_new_display_list_from_page(fz_context *ctx, fz_page *page) { fz_display_list *list; + fz_rect bounds; fz_device *dev; - list = fz_new_display_list(ctx); + list = fz_new_display_list(ctx, fz_bound_page(ctx, page, &bounds)); fz_try(ctx) { |