diff options
author | Robin Watts <Robin.Watts@artifex.com> | 2017-03-25 17:39:45 -0400 |
---|---|---|
committer | Robin Watts <Robin.Watts@artifex.com> | 2017-03-27 10:50:17 -0400 |
commit | 66f878d1d7c580f9010e9f362399606989671a45 (patch) | |
tree | b00058d13efff94b659230e05f3df485f2c42287 /platform/java/mupdf_native.c | |
parent | d3087bb261de53557572a49458a2ae88a2d38453 (diff) | |
download | mupdf-66f878d1d7c580f9010e9f362399606989671a45.tar.xz |
Tweak document_writer - don't pass dev back in.
It seems odd for a document writer to pass a device pointer
out, and then require it to be passed back in.
Hide that in the public API.
Diffstat (limited to 'platform/java/mupdf_native.c')
-rw-r--r-- | platform/java/mupdf_native.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/platform/java/mupdf_native.c b/platform/java/mupdf_native.c index 311560fd..a7ebddee 100644 --- a/platform/java/mupdf_native.c +++ b/platform/java/mupdf_native.c @@ -5521,17 +5521,15 @@ FUN(DocumentWriter_beginPage)(JNIEnv *env, jobject self, jobject jmediabox) } JNIEXPORT void JNICALL -FUN(DocumentWriter_endPage)(JNIEnv *env, jobject self, jobject jdev) +FUN(DocumentWriter_endPage)(JNIEnv *env, jobject self) { fz_context *ctx = get_context(env); fz_document_writer *wri = from_DocumentWriter(env, self); - fz_device *device = from_Device(env, jdev); if (!ctx || !wri) return; - if (!device) { jni_throw_arg(env, "device must not be null"); return; } fz_try(ctx) - fz_end_page(ctx, wri, device); + fz_end_page(ctx, wri); fz_catch(ctx) jni_rethrow(env, ctx); } |