summaryrefslogtreecommitdiff
path: root/platform/android
diff options
context:
space:
mode:
authorfred ross-perry <fredross-perry@Fred-Ross-Perrys-Computer.local>2016-07-14 15:45:10 -0700
committerfred ross-perry <fred.ross-perry@artifex.com>2016-07-15 09:36:56 -0700
commite47769cf2bc9feb30c074c965883f9662540ab3b (patch)
treefb14eed20a213417041228dd300ec61fec0eaba3 /platform/android
parent07bf093b3a11cc776a6a227e8cb478a87d2cdd94 (diff)
downloadmupdf-e47769cf2bc9feb30c074c965883f9662540ab3b.tar.xz
Android viewer - fix bugs in mupdf.c associated with changing APIs.
fz_bound_page needs the correct 2nd argument pdf_widget_get_type should be pdf_widget_type
Diffstat (limited to 'platform/android')
-rw-r--r--platform/android/viewer/jni/mupdf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/platform/android/viewer/jni/mupdf.c b/platform/android/viewer/jni/mupdf.c
index 9af760b7..55c37e43 100644
--- a/platform/android/viewer/jni/mupdf.c
+++ b/platform/android/viewer/jni/mupdf.c
@@ -2171,7 +2171,7 @@ JNI_FN(MuPDFCore_getFocusedWidgetChoiceOptions)(JNIEnv * env, jobject thiz)
if (focus == NULL)
return NULL;
- type = pdf_widget_get_type(ctx, focus);
+ type = pdf_widget_type(ctx, focus);
if (type != PDF_WIDGET_TYPE_LISTBOX && type != PDF_WIDGET_TYPE_COMBOBOX)
return NULL;
@@ -2227,7 +2227,7 @@ JNI_FN(MuPDFCore_getFocusedWidgetChoiceSelected)(JNIEnv * env, jobject thiz)
if (focus == NULL)
return NULL;
- type = pdf_widget_get_type(ctx, focus);
+ type = pdf_widget_type(ctx, focus);
if (type != PDF_WIDGET_TYPE_LISTBOX && type != PDF_WIDGET_TYPE_COMBOBOX)
return NULL;
@@ -2282,7 +2282,7 @@ JNI_FN(MuPDFCore_setFocusedWidgetChoiceSelectedInternal)(JNIEnv * env, jobject t
if (focus == NULL)
return;
- type = pdf_widget_get_type(ctx, focus);
+ type = pdf_widget_type(ctx, focus);
if (type != PDF_WIDGET_TYPE_LISTBOX && type != PDF_WIDGET_TYPE_COMBOBOX)
return;
@@ -2337,7 +2337,7 @@ JNI_FN(MuPDFCore_getFocusedWidgetTypeInternal)(JNIEnv * env, jobject thiz)
if (focus == NULL)
return NONE;
- switch (pdf_widget_get_type(ctx, focus))
+ switch (pdf_widget_type(ctx, focus))
{
case PDF_WIDGET_TYPE_TEXT: return TEXT;
case PDF_WIDGET_TYPE_LISTBOX: return LISTBOX;