summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2015-12-15 11:31:36 +0100
committerTor Andersson <tor.andersson@artifex.com>2015-12-15 14:11:10 +0100
commit3afdcd7307fd5e68f35c7bb91a4d856499f1df44 (patch)
tree13253bb6d7af2716f882e878be956fa157544ec6 /platform
parent88a1d527a50e3cc48606ce097a335669ae84a716 (diff)
downloadmupdf-3afdcd7307fd5e68f35c7bb91a4d856499f1df44.tar.xz
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.
Diffstat (limited to 'platform')
-rw-r--r--platform/android/jni/mupdf.c6
-rw-r--r--platform/x11/jstest_main.c4
-rw-r--r--platform/x11/pdfapp.c6
3 files changed, 8 insertions, 8 deletions
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);
diff --git a/platform/x11/jstest_main.c b/platform/x11/jstest_main.c
index e83cbfe3..79d300ea 100644
--- a/platform/x11/jstest_main.c
+++ b/platform/x11/jstest_main.c
@@ -372,9 +372,9 @@ main(int argc, char *argv[])
sprintf(text, output, ++shotcount);
if (strstr(text, ".pgm") || strstr(text, ".ppm") || strstr(text, ".pnm"))
- fz_write_pnm(ctx, gapp.image, text);
+ fz_save_pixmap_as_pnm(ctx, gapp.image, text);
else
- fz_write_png(ctx, gapp.image, text, 0);
+ fz_save_pixmap_as_png(ctx, gapp.image, text, 0);
}
else if (match(&line, "RESIZE"))
{
diff --git a/platform/x11/pdfapp.c b/platform/x11/pdfapp.c
index be8ab751..314592a1 100644
--- a/platform/x11/pdfapp.c
+++ b/platform/x11/pdfapp.c
@@ -551,7 +551,7 @@ static int pdfapp_save(pdfapp_t *app)
if (wingetsavepath(app, buf, PATH_MAX))
{
- fz_write_options opts;
+ fz_save_options opts;
opts.do_incremental = 1;
opts.do_ascii = 0;
@@ -562,7 +562,7 @@ static int pdfapp_save(pdfapp_t *app)
if (strcmp(buf, app->docpath) != 0)
{
wincopyfile(app->docpath, buf);
- fz_write_document(app->ctx, app->doc, buf, &opts);
+ fz_save_document(app->ctx, app->doc, buf, &opts);
return 1;
}
@@ -573,7 +573,7 @@ static int pdfapp_save(pdfapp_t *app)
fz_try(app->ctx)
{
wincopyfile(app->docpath, buf);
- fz_write_document(app->ctx, app->doc, buf, &opts);
+ fz_save_document(app->ctx, app->doc, buf, &opts);
written = 1;
}
fz_catch(app->ctx)