summaryrefslogtreecommitdiff
path: root/platform/android/viewer/jni/mupdf.c
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2016-11-02 12:19:41 +0100
committerTor Andersson <tor.andersson@artifex.com>2016-11-02 12:24:17 +0100
commit3a0cd035010aea567ba07755a76a7a2e94c96aa4 (patch)
treea0b0c44e32da859845e3563a232ef4d1ccb458a0 /platform/android/viewer/jni/mupdf.c
parent076780b0830dad0dad36915f7fc0a3fef272e59f (diff)
downloadmupdf-3a0cd035010aea567ba07755a76a7a2e94c96aa4.tar.xz
android: Fix spelling error.
Diffstat (limited to 'platform/android/viewer/jni/mupdf.c')
-rw-r--r--platform/android/viewer/jni/mupdf.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/platform/android/viewer/jni/mupdf.c b/platform/android/viewer/jni/mupdf.c
index c8c01866..c50d5a89 100644
--- a/platform/android/viewer/jni/mupdf.c
+++ b/platform/android/viewer/jni/mupdf.c
@@ -796,6 +796,7 @@ JNI_FN(MuPDFCore_drawPage)(JNIEnv *env, jobject thiz, jobject bitmap,
fz_throw(ctx, FZ_ERROR_GENERIC, "Render aborted");
}
}
+
if (pc->annot_list == NULL)
{
fz_annot *annot;
@@ -813,14 +814,14 @@ JNI_FN(MuPDFCore_drawPage)(JNIEnv *env, jobject thiz, jobject bitmap,
fz_throw(ctx, FZ_ERROR_GENERIC, "Render aborted");
}
}
+
bbox.x0 = patchX;
bbox.y0 = patchY;
bbox.x1 = patchX + patchW;
bbox.y1 = patchY + patchH;
pixbbox = bbox;
pixbbox.x1 = pixbbox.x0 + info.width;
- /* pixmaps cannot handle right-edge padding, so the bbox must be expanded to
- * match the pixels data */
+ /* 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, 1, pixels);
if (pc->page_list == NULL && pc->annot_list == NULL)
{
@@ -833,13 +834,13 @@ JNI_FN(MuPDFCore_drawPage)(JNIEnv *env, jobject thiz, jobject bitmap,
fz_scale(&ctm, zoom, zoom);
rect = pc->media_box;
fz_round_rect(&bbox, fz_transform_rect(&rect, &ctm));
- /* Now, adjust ctm so that it would give the correct page width
- * heights. */
+ /* Now, adjust ctm so that it would give the correct page width heights. */
xscale = (float)pageW/(float)(bbox.x1-bbox.x0);
yscale = (float)pageH/(float)(bbox.y1-bbox.y0);
fz_concat(&ctm, &ctm, fz_scale(&scale, xscale, yscale));
rect = pc->media_box;
fz_transform_rect(&rect, &ctm);
+
dev = fz_new_draw_device(ctx, NULL, pix);
#ifdef TIME_DISPLAY_LIST
{