From c16cadec123f6150cee4008aa4836fbb8ffb0db6 Mon Sep 17 00:00:00 2001 From: Paul Gardiner Date: Mon, 29 Oct 2012 11:22:29 +0000 Subject: Add fz_update_page Regenerate dirty appearance streams and report changed annotations since last call. Also include a partial revert of changes in 96f335bc, that turn out not to be necessary. fz_update_page must now be called between each document-changing event and the next render. pdfapp.c and the android app have been updated to do so, but do not yet take advantage of the possibility to render only the updated areas of the screen. --- apps/pdfapp.c | 1 + 1 file changed, 1 insertion(+) (limited to 'apps') diff --git a/apps/pdfapp.c b/apps/pdfapp.c index c622bbb3..50a213aa 100644 --- a/apps/pdfapp.c +++ b/apps/pdfapp.c @@ -1336,6 +1336,7 @@ void pdfapp_onmouse(pdfapp_t *app, int x, int y, int btn, int modifiers, int sta } app->nowaitcursor = 1; + fz_update_page(idoc, app->page, NULL, NULL); pdfapp_showpage(app, 2, 1, 1, 0); app->nowaitcursor = 0; processed = 1; -- cgit v1.2.3