[gs-commits] mupdf 1.16.1.epub-prerelease-2 Fix JNI/Java naming mismat
[email protected] (Tor Andersson) Tue, 22 Oct 2019 15:25:09 +0000 (UTC)
| Newsgroups | gmane.comp.printing.ghostscript.cvs |
|---|---|
| Message-ID | <[email protected]> |
commit 737d5aacadd12d90a5077e0f8215e145d595afd6 Author: Fred Ross-Perry <[email protected]> Date: Tue Sep 24 17:22:01 2019 -0700 Fix JNI/Java naming mismatch. PDFAnnotation.addInkListVertex should be addInkListStrokeVertex. diff --git a/platform/java/mupdf_native.h b/platform/java/mupdf_native.h index 555ba50..78f836a 100644 --- a/platform/java/mupdf_native.h +++ b/platform/java/mupdf_native.h @@ -1534,10 +1534,10 @@ JNIEXPORT void JNICALL Java_com_artifex_mupdf_fitz_PDFAnnotation_addInkListStrok /* * Class: com_artifex_mupdf_fitz_PDFAnnotation - * Method: addInkListVertex + * Method: addInkListStrokeVertex * Signature: (FF)V */ -JNIEXPORT void JNICALL Java_com_artifex_mupdf_fitz_PDFAnnotation_addInkListVertex +JNIEXPORT void JNICALL Java_com_artifex_mupdf_fitz_PDFAnnotation_addInkListStrokeVertex (JNIEnv *, jobject, jfloat, jfloat); /* diff --git a/platform/java/src/com/artifex/mupdf/fitz/PDFAnnotation.java b/platform/java/src/com/artifex/mupdf/fitz/PDFAnnotation.java index a7bdf04..38ed579 100644 --- a/platform/java/src/com/artifex/mupdf/fitz/PDFAnnotation.java +++ b/platform/java/src/com/artifex/mupdf/fitz/PDFAnnotation.java @@ -157,21 +157,21 @@ public class PDFAnnotation public native Point getInkListStrokeVertex(int i, int k); public native void clearInkList(); public native void addInkListStroke(); - public native void addInkListVertex(float x, float y); - public void addInkListVertex(Point p) { - addInkListVertex(p.x, p.y); + public native void addInkListStrokeVertex(float x, float y); + public void addInkListStrokeVertex(Point p) { + addInkListStrokeVertex(p.x, p.y); } public void addInkList(Point[] stroke) { addInkListStroke(); for (Point p : stroke) - addInkListVertex(p); + addInkListStrokeVertex(p); } public void setInkList(Point[][] inkList) { clearInkList(); for (Point[] stroke : inkList) { addInkListStroke(); for (Point p : stroke) - addInkListVertex(p); + addInkListStrokeVertex(p); } } public Point[][] getInkList() { http://git.ghostscript.com/?p=mupdf.git;a=commit;h=737d5aacadd12d90a5077e0f8215e145d595afd6 -- MuPDF library Artifex Software, Inc.