summaryrefslogtreecommitdiff
path: root/android
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2012-01-11 23:27:22 +0100
committerTor Andersson <tor.andersson@artifex.com>2012-01-11 23:27:22 +0100
commitaaf451799bb046b6758a73fdb3c8fb88692ac776 (patch)
tree13ede9863b14778c3e1feee9e9f2fa230842d6df /android
parent209f30bee3121bbae32799b0bbb10f5e6db4158c (diff)
downloadmupdf-aaf451799bb046b6758a73fdb3c8fb88692ac776.tar.xz
Use enum for FZ_STORE_DEFAULT default size.
Diffstat (limited to 'android')
-rw-r--r--android/jni/mupdf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/android/jni/mupdf.c b/android/jni/mupdf.c
index 48ffbe87..ee6a9cc5 100644
--- a/android/jni/mupdf.c
+++ b/android/jni/mupdf.c
@@ -51,7 +51,8 @@ Java_com_artifex_mupdf_MuPDFCore_openFile(JNIEnv * env, jobject thiz, jstring jf
if (accelerate)
fz_accelerate();
- ctx = fz_new_context(&fz_alloc_default, FZ_STORE_UNLIMITED);
+ /* 128 MB store for low memory devices. Tweak as necessary. */
+ ctx = fz_new_context(NULL, 128 << 20);
if (!ctx)
{
LOGE("Failed to initialise context");