From 48652e529ed1c0ae23cfd45f14d9655ad2849c89 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Tue, 13 Mar 2012 13:57:11 +0100 Subject: Rename some functions and accessors to be more consistent. Debug printing functions: debug -> print. Accessors: get noun attribute -> noun attribute. Find -> lookup when the returned value is not reference counted. pixmap_with_rect -> pixmap_with_bbox. We are reserving the word "find" to mean lookups that give ownership of objects to the caller. Lookup is used in other places where the ownership is not transferred, or simple values are returned. The rename is done by the sed script in scripts/rename3.sed --- android/jni/mupdf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'android') diff --git a/android/jni/mupdf.c b/android/jni/mupdf.c index 3e471355..a7d49974 100644 --- a/android/jni/mupdf.c +++ b/android/jni/mupdf.c @@ -188,7 +188,7 @@ Java_com_artifex_mupdf_MuPDFCore_drawPage(JNIEnv *env, jobject thiz, jobject bit rect.y0 = patchY; rect.x1 = patchX + patchW; rect.y1 = patchY + patchH; - pix = fz_new_pixmap_with_rect_and_data(ctx, colorspace, rect, pixels); + pix = fz_new_pixmap_with_bbox_and_data(ctx, colorspace, rect, pixels); if (currentPageList == NULL) { fz_clear_pixmap_with_value(pix, 0xd0); -- cgit v1.2.3