diff options
author | Robin Watts <robin.watts@artifex.com> | 2016-06-06 12:01:07 +0100 |
---|---|---|
committer | Robin Watts <robin.watts@artifex.com> | 2016-06-06 12:03:52 +0100 |
commit | 445cf546e30a1903233d54aee2b0cf45552d1425 (patch) | |
tree | 70c3a8298da2c30d8e6928fa8882ee8264001d65 /platform/android/viewer | |
parent | 3e8ce4d910d4d0ec74a2b8863978fe7e0fb4dbef (diff) | |
download | mupdf-445cf546e30a1903233d54aee2b0cf45552d1425.tar.xz |
Android Viewer: Fix jni code w.r.t pixmap alpha API changes.
Need to specify that we are using alphas now.
Diffstat (limited to 'platform/android/viewer')
-rw-r--r-- | platform/android/viewer/jni/mupdf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/android/viewer/jni/mupdf.c b/platform/android/viewer/jni/mupdf.c index 5e04ff8e..f9d6042b 100644 --- a/platform/android/viewer/jni/mupdf.c +++ b/platform/android/viewer/jni/mupdf.c @@ -790,7 +790,7 @@ JNI_FN(MuPDFCore_drawPage)(JNIEnv *env, jobject thiz, jobject bitmap, pixbbox.x1 = pixbbox.x0 + info.width; /* pixmaps cannot handle right-edge padding, so the bbox must be expanded to * match the pixels data */ - pix = fz_new_pixmap_with_bbox_and_data(ctx, glo->colorspace, &pixbbox, pixels); + pix = fz_new_pixmap_with_bbox_and_data(ctx, glo->colorspace, &pixbbox, 1, pixels); if (pc->page_list == NULL && pc->annot_list == NULL) { fz_clear_pixmap_with_value(ctx, pix, 0xd0); @@ -989,7 +989,7 @@ JNI_FN(MuPDFCore_updatePageInternal)(JNIEnv *env, jobject thiz, jobject bitmap, pixbbox.x1 = pixbbox.x0 + info.width; /* pixmaps cannot handle right-edge padding, so the bbox must be expanded to * match the pixels data */ - pix = fz_new_pixmap_with_bbox_and_data(ctx, glo->colorspace, &pixbbox, pixels); + pix = fz_new_pixmap_with_bbox_and_data(ctx, glo->colorspace, &pixbbox, 1, pixels); zoom = glo->resolution / 72; fz_scale(&ctm, zoom, zoom); |