summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-06-16 16:34:17 +0200
committerTor Andersson <tor.andersson@artifex.com>2016-06-17 14:53:21 +0200
commit602cc73633568beec1afe7068bb3a1040b20bba0 (patch)
tree84cb02e9c58af4e70e36b7a0878b0de1d49f6ec4 /include
parentccaf716d6c3f20731aaed277653cf3b1be4e218b (diff)
downloadmupdf-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 'include')
-rw-r--r--include/mupdf/fitz/display-list.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/mupdf/fitz/display-list.h b/include/mupdf/fitz/display-list.h
index 3881aa28..a7f7fa00 100644
--- a/include/mupdf/fitz/display-list.h
+++ b/include/mupdf/fitz/display-list.h
@@ -29,8 +29,10 @@ typedef struct fz_display_list_s fz_display_list;
A display list contains drawing commands (text, images, etc.).
Use fz_new_list_device for populating the list.
+
+ mediabox: Bounds of the page (in points) represented by the display list.
*/
-fz_display_list *fz_new_display_list(fz_context *ctx);
+fz_display_list *fz_new_display_list(fz_context *ctx, const fz_rect *mediabox);
/*
fz_new_list_device: Create a rendering device for a display list.
@@ -89,7 +91,7 @@ fz_display_list *fz_keep_display_list(fz_context *ctx, fz_display_list *list);
void fz_drop_display_list(fz_context *ctx, fz_display_list *list);
/*
- fz_bound_display_list: Return the bounding box of the pages recorded in a display list.
+ fz_bound_display_list: Return the bounding box of the page recorded in a display list.
*/
fz_rect *fz_bound_display_list(fz_context *ctx, fz_display_list *list, fz_rect *bounds);