From 602cc73633568beec1afe7068bb3a1040b20bba0 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Thu, 16 Jun 2016 16:34:17 +0200 Subject: 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. --- include/mupdf/fitz/display-list.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'include') 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); -- cgit v1.2.3