summaryrefslogtreecommitdiff
path: root/platform/java
diff options
context:
space:
mode:
Diffstat (limited to 'platform/java')
-rw-r--r--platform/java/mupdf_native.c2
-rw-r--r--platform/java/mupdf_native.h6
2 files changed, 5 insertions, 3 deletions
diff --git a/platform/java/mupdf_native.c b/platform/java/mupdf_native.c
index a4136004..c45afcd9 100644
--- a/platform/java/mupdf_native.c
+++ b/platform/java/mupdf_native.c
@@ -5338,7 +5338,7 @@ FUN(Buffer_writeRune)(JNIEnv *env, jobject self, jint rune)
if (!ctx || !buf) return;
fz_try(ctx)
- fz_write_buffer_rune(ctx, buf, rune);
+ fz_append_rune(ctx, buf, rune);
fz_catch(ctx)
jni_rethrow(env, ctx);
}
diff --git a/platform/java/mupdf_native.h b/platform/java/mupdf_native.h
index 095b3d81..acfaf1d1 100644
--- a/platform/java/mupdf_native.h
+++ b/platform/java/mupdf_native.h
@@ -751,10 +751,10 @@ JNIEXPORT jobject JNICALL Java_com_artifex_mupdf_fitz_DocumentWriter_beingPage
/*
* Class: com_artifex_mupdf_fitz_DocumentWriter
* Method: endPage
- * Signature: (Lcom/artifex/mupdf/fitz/Device;)V
+ * Signature: ()V
*/
JNIEXPORT void JNICALL Java_com_artifex_mupdf_fitz_DocumentWriter_endPage
- (JNIEnv *, jobject, jobject);
+ (JNIEnv *, jobject);
/*
* Class: com_artifex_mupdf_fitz_DocumentWriter
@@ -1366,6 +1366,8 @@ extern "C" {
#define com_artifex_mupdf_fitz_PDFAnnotation_TYPE_WATERMARK 23L
#undef com_artifex_mupdf_fitz_PDFAnnotation_TYPE_3D
#define com_artifex_mupdf_fitz_PDFAnnotation_TYPE_3D 24L
+#undef com_artifex_mupdf_fitz_PDFAnnotation_TYPE_UNKNOWN
+#define com_artifex_mupdf_fitz_PDFAnnotation_TYPE_UNKNOWN -1L
/*
* Class: com_artifex_mupdf_fitz_PDFAnnotation
* Method: getType