summaryrefslogtreecommitdiff
path: root/platform/x11/pdfapp.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-02-26 16:31:06 +0100
committerTor Andersson <tor.andersson@artifex.com>2018-02-27 17:47:54 +0100
commit9f8e0724789744d81c5de0138e65284a9560e707 (patch)
treeac4237044423e8ac6bf60a33a879862134c3f8bb /platform/x11/pdfapp.c
parent8ebca3d5481961f56b5754ab4cfa9544f58c5b0b (diff)
downloadmupdf-9f8e0724789744d81c5de0138e65284a9560e707.tar.xz
Remove pdf_xobject wrapper struct.
Just use the pdf_obj directly. Revise ap_iteration and split annot->dirty into separate flags. One flag for needs_new_ap, and one for has_new_ap (to be used by clients who may have cached a rendered annotation).
Diffstat (limited to 'platform/x11/pdfapp.c')
-rw-r--r--platform/x11/pdfapp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/x11/pdfapp.c b/platform/x11/pdfapp.c
index efa7f460..f038f945 100644
--- a/platform/x11/pdfapp.c
+++ b/platform/x11/pdfapp.c
@@ -808,7 +808,7 @@ static void pdfapp_updatepage(pdfapp_t *app)
for (pannot = pdf_first_annot(app->ctx, (pdf_page*)app->page); pannot; pannot = pdf_next_annot(app->ctx, pannot))
{
- if (pdf_annot_is_dirty(app->ctx, pannot))
+ if (pannot->has_new_ap)
{
fz_annot *annot = (fz_annot*)pannot;
fz_rect bounds;
@@ -826,6 +826,7 @@ static void pdfapp_updatepage(pdfapp_t *app)
fz_drop_device(app->ctx, idev);
fz_catch(app->ctx)
fz_rethrow(app->ctx);
+ pannot->has_new_ap = 0;
}
}