From 0abcccc4aab4d893ac2a0ef116ff1f0c006fbc30 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 6 Jul 2018 14:20:26 +0200 Subject: Rejig pdf_update_page and pdf_update_annot. The intent is for a user to iterate over the annotations on a page calling pdf_update_annot for each one. If this function returns true, then the annotation has changed since the last time it was called, and the user needs to re-render. pdf_update_page is a simple loop over the annotations on a page, for use if you only care about page level granularity. Users should no longer look at or change the pdf_annot.has_new_ap field. --- platform/gl/gl-main.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'platform/gl/gl-main.c') diff --git a/platform/gl/gl-main.c b/platform/gl/gl-main.c index ed1591e4..5b5ae2b8 100644 --- a/platform/gl/gl-main.c +++ b/platform/gl/gl-main.c @@ -260,13 +260,6 @@ void render_page(void) fz_gamma_pixmap(ctx, pix, 1 / 1.4f); } - if (pdf) - { - pdf_annot *annot; - for (annot = page->annots; annot; annot = annot->next) - annot->has_new_ap = 0; - } - ui_texture_from_pixmap(&page_tex, pix); fz_drop_pixmap(ctx, pix); } -- cgit v1.2.3