From 3afdcd7307fd5e68f35c7bb91a4d856499f1df44 Mon Sep 17 00:00:00 2001 From: Tor Andersson <tor.andersson@artifex.com> Date: Tue, 15 Dec 2015 11:31:36 +0100 Subject: Rename fz_write_x to fz_save_pixmap_as_x or fz_save_bitmap_as_x. Separate naming of functions that save complete files to disk from functions that write data to streams. --- platform/android/jni/mupdf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'platform/android/jni/mupdf.c') diff --git a/platform/android/jni/mupdf.c b/platform/android/jni/mupdf.c index e7a64b34..b927bd57 100644 --- a/platform/android/jni/mupdf.c +++ b/platform/android/jni/mupdf.c @@ -2597,7 +2597,7 @@ JNI_FN(MuPDFCore_saveInternal)(JNIEnv * env, jobject thiz) if (glo->doc && glo->current_path) { char *tmp; - fz_write_options opts; + fz_save_options opts; opts.do_incremental = 1; opts.do_ascii = 0; opts.do_expand = 0; @@ -2631,7 +2631,7 @@ JNI_FN(MuPDFCore_saveInternal)(JNIEnv * env, jobject thiz) if (!err) { - fz_write_document(ctx, glo->doc, tmp, &opts); + fz_save_document(ctx, glo->doc, tmp, &opts); written = 1; } } @@ -2756,7 +2756,7 @@ JNI_FN(MuPDFCore_startProofInternal)(JNIEnv * env, jobject thiz, int inResolutio fz_try(ctx) { - fz_write_gproof_file(ctx, glo->current_path, glo->doc, tmp, theResolution, "", ""); + fz_save_gproof(ctx, glo->current_path, glo->doc, tmp, theResolution, "", ""); LOGE("Creating %s\n", tmp); ret = (*env)->NewStringUTF(env, tmp); -- cgit v1.2.3