From 161a77db42e306216b5493cf8f8e739053eb86d2 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 28 Mar 2017 11:16:32 +0200 Subject: Java fixes. --- platform/java/mupdf_native.c | 2 +- platform/java/mupdf_native.h | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'platform/java') 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 -- cgit v1.2.3