summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@gmail.com>2016-07-23 00:46:59 +0800
committerSebastian Rasmussen <sebras@gmail.com>2016-08-02 02:20:45 +0800
commit7e0a20debff7940a943bb54f8fd140caecaa2e1f (patch)
tree8188f3318cf0c6a2ac1a1361a299b422eaddeebb
parentbaafc0a167221f60c584923b6dc294801c959f45 (diff)
downloadmupdf-7e0a20debff7940a943bb54f8fd140caecaa2e1f.tar.xz
JNI: Put all Pixmap.clear() in a single location.
-rw-r--r--platform/java/src/com/artifex/mupdf/fitz/Pixmap.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/platform/java/src/com/artifex/mupdf/fitz/Pixmap.java b/platform/java/src/com/artifex/mupdf/fitz/Pixmap.java
index 069d27a1..006ca122 100644
--- a/platform/java/src/com/artifex/mupdf/fitz/Pixmap.java
+++ b/platform/java/src/com/artifex/mupdf/fitz/Pixmap.java
@@ -42,7 +42,10 @@ public class Pixmap
}
public native void clear();
- public native void clearWithValue(int value);
+ private native void clearWithValue(int value);
+ public void clear(int value) {
+ clearWithValue(value);
+ }
public native void saveAsPNG(String filename);
@@ -60,10 +63,6 @@ public class Pixmap
public native int getXResolution();
public native int getYResolution();
- public void clear(int value) {
- clearWithValue(value);
- }
-
public Rect getBounds() {
int x = getX();
int y = getY();