diff options
author | Sebastian Rasmussen <sebras@gmail.com> | 2018-09-06 23:04:26 +0800 |
---|---|---|
committer | Sebastian Rasmussen <sebras@gmail.com> | 2018-09-07 17:31:16 +0800 |
commit | 35eda6f5a51c14973794f379144edc84ef233baa (patch) | |
tree | e9e417288675e61c2b709149dde18a7ef4cf607c | |
parent | ee8ce2ffbdbbce6418453f2ad8b43e17e8a4b51b (diff) | |
download | mupdf-35eda6f5a51c14973794f379144edc84ef233baa.tar.xz |
jni: Update NativeDevice to adhere to Device interface.
-rw-r--r-- | platform/java/mupdf_native.c | 5 | ||||
-rw-r--r-- | platform/java/src/com/artifex/mupdf/fitz/NativeDevice.java | 2 |
2 files changed, 4 insertions, 3 deletions
diff --git a/platform/java/mupdf_native.c b/platform/java/mupdf_native.c index 06dfc30e..30592f11 100644 --- a/platform/java/mupdf_native.c +++ b/platform/java/mupdf_native.c @@ -3224,11 +3224,12 @@ FUN(NativeDevice_endMask)(JNIEnv *env, jobject self) } JNIEXPORT void JNICALL -FUN(NativeDevice_beginGroup)(JNIEnv *env, jobject self, jobject jrect, jboolean isolated, jboolean knockout, jint blendmode, jfloat alpha) +FUN(NativeDevice_beginGroup)(JNIEnv *env, jobject self, jobject jrect, jobject jcs, jboolean isolated, jboolean knockout, jint blendmode, jfloat alpha) { fz_context *ctx = get_context(env); fz_device *dev = from_Device(env, self); fz_rect rect = from_Rect(env, jrect); + fz_colorspace *cs = from_ColorSpace(env, self); NativeDeviceInfo *info; int err; @@ -3238,7 +3239,7 @@ FUN(NativeDevice_beginGroup)(JNIEnv *env, jobject self, jobject jrect, jboolean if (err) return; fz_try(ctx) - fz_begin_group(ctx, dev, rect, NULL, isolated, knockout, blendmode, alpha); + fz_begin_group(ctx, dev, rect, cs, isolated, knockout, blendmode, alpha); fz_always(ctx) unlockNativeDevice(env, info); fz_catch(ctx) diff --git a/platform/java/src/com/artifex/mupdf/fitz/NativeDevice.java b/platform/java/src/com/artifex/mupdf/fitz/NativeDevice.java index 820b7949..177bea05 100644 --- a/platform/java/src/com/artifex/mupdf/fitz/NativeDevice.java +++ b/platform/java/src/com/artifex/mupdf/fitz/NativeDevice.java @@ -44,7 +44,7 @@ public class NativeDevice extends Device public native final void beginMask(Rect rect, boolean luminosity, ColorSpace cs, float bc[], int cp); public native final void endMask(); - public native final void beginGroup(Rect rect, boolean isolated, boolean knockout, int blendmode, float alpha); + public native final void beginGroup(Rect rect, ColorSpace cs, boolean isolated, boolean knockout, int blendmode, float alpha); public native final void endGroup(); public native final int beginTile(Rect area, Rect view, float xstep, float ystep, Matrix ctm, int id); |