summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--android/jni/mupdf.c2
-rw-r--r--ios/main.m2
2 files changed, 2 insertions, 2 deletions
diff --git a/android/jni/mupdf.c b/android/jni/mupdf.c
index 8541dbfe..a1a82ca8 100644
--- a/android/jni/mupdf.c
+++ b/android/jni/mupdf.c
@@ -49,7 +49,7 @@ Java_com_artifex_mupdf_MuPDFCore_openFile(JNIEnv * env, jobject thiz, jstring jf
fz_accelerate();
/* 128 MB store for low memory devices. Tweak as necessary. */
- ctx = fz_new_context(NULL, 128 << 20);
+ ctx = fz_new_context(NULL, NULL, 128 << 20);
if (!ctx)
{
LOGE("Failed to initialise context");
diff --git a/ios/main.m b/ios/main.m
index fa85178d..4901a2c5 100644
--- a/ios/main.m
+++ b/ios/main.m
@@ -1386,7 +1386,7 @@ static UIImage *renderTile(struct document *doc, int number, CGSize screenSize,
queue = dispatch_queue_create("com.artifex.mupdf.queue", NULL);
// use at most 128M for resource cache
- ctx = fz_new_context(NULL, 128<<20);
+ ctx = fz_new_context(NULL, NULL, 128<<20);
screenScale = [[UIScreen mainScreen] scale];