summaryrefslogtreecommitdiff
path: root/platform/x11
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 /platform/x11
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 'platform/x11')
-rw-r--r--platform/x11/pdfapp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/platform/x11/pdfapp.c b/platform/x11/pdfapp.c
index 2b650442..532c217b 100644
--- a/platform/x11/pdfapp.c
+++ b/platform/x11/pdfapp.c
@@ -669,7 +669,7 @@ static void pdfapp_loadpage(pdfapp_t *app, int no_cache)
{
fz_annot *annot;
/* Create display lists */
- app->page_list = fz_new_display_list(app->ctx);
+ app->page_list = fz_new_display_list(app->ctx, NULL);
mdev = fz_new_list_device(app->ctx, app->page_list);
if (no_cache)
fz_enable_device_hints(app->ctx, mdev, FZ_NO_CACHE);
@@ -677,7 +677,7 @@ static void pdfapp_loadpage(pdfapp_t *app, int no_cache)
fz_run_page_contents(app->ctx, app->page, mdev, &fz_identity, &cookie);
fz_drop_device(app->ctx, mdev);
mdev = NULL;
- app->annotations_list = fz_new_display_list(app->ctx);
+ app->annotations_list = fz_new_display_list(app->ctx, NULL);
mdev = fz_new_list_device(app->ctx, app->annotations_list);
for (annot = fz_first_annot(app->ctx, app->page); annot; annot = fz_next_annot(app->ctx, annot))
fz_run_annot(app->ctx, annot, mdev, &fz_identity, &cookie);
@@ -737,7 +737,7 @@ static void pdfapp_recreate_annotationslist(pdfapp_t *app)
{
fz_annot *annot;
/* Create display list */
- app->annotations_list = fz_new_display_list(app->ctx);
+ app->annotations_list = fz_new_display_list(app->ctx, NULL);
mdev = fz_new_list_device(app->ctx, app->annotations_list);
for (annot = fz_first_annot(app->ctx, app->page); annot; annot = fz_next_annot(app->ctx, annot))
fz_run_annot(app->ctx, annot, mdev, &fz_identity, &cookie);