diff options
author | Paul Gardiner <paulg.artifex@glidos.net> | 2012-10-29 11:22:29 +0000 |
---|---|---|
committer | Paul Gardiner <paulg.artifex@glidos.net> | 2012-10-29 11:28:03 +0000 |
commit | c16cadec123f6150cee4008aa4836fbb8ffb0db6 (patch) | |
tree | ac0bb7787e37045e69ed7ad64e1a0e9d95e311e4 /android | |
parent | 246d59d7c4a41bda9ef28ca38eba3be5f67726cc (diff) | |
download | mupdf-c16cadec123f6150cee4008aa4836fbb8ffb0db6.tar.xz |
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.
Diffstat (limited to 'android')
-rw-r--r-- | android/jni/mupdf.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/android/jni/mupdf.c b/android/jni/mupdf.c index 18b4db40..2f5376ca 100644 --- a/android/jni/mupdf.c +++ b/android/jni/mupdf.c @@ -156,6 +156,14 @@ Java_com_artifex_mupdf_MuPDFCore_gotoPageInternal(JNIEnv *env, jobject thiz, int JNIEXPORT void JNICALL Java_com_artifex_mupdf_MuPDFCore_markDirtyInternal(JNIEnv *env, jobject thiz, int page) { + if (currentPage) + { + fz_interactive *idoc = fz_interact(doc); + + if (idoc) + fz_update_page(idoc, currentPage, NULL, NULL); + } + if (currentAnnotationList != NULL && page == pagenum) { fz_free_display_list(ctx, currentAnnotationList); |