# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1620992491 0 # Node ID c4d75d30430c0b05fb27584ed3789f94aef5dd77 # Parent dbd15c13f5bb2ae70d09cd89334ad6a4c552a4b4 Android: Minor fixes to that last commit... missed dw.h changes and remove test code. diff -r dbd15c13f5bb -r c4d75d30430c android/dw.cpp --- a/android/dw.cpp Fri May 14 11:29:00 2021 +0000 +++ b/android/dw.cpp Fri May 14 11:41:31 2021 +0000 @@ -2599,8 +2599,7 @@ // Construct the string jstring jstr = env->NewStringUTF(text); // First get the class that contains the method you need to call - //jclass clazz = _dw_find_class(env, DW_CLASS_NAME); - jclass clazz = env->FindClass(DW_CLASS_NAME); + jclass clazz = _dw_find_class(env, DW_CLASS_NAME); // Get the method that you want to call jmethodID fontTextExtentsGet = env->GetMethodID(clazz, "fontTextExtentsGet", "(Lorg/dbsoft/dwindows/DWRender;Landroid/graphics/Bitmap;Ljava/lang/String;Landroid/graphics/Typeface;ILandroid/view/View;)J"); diff -r dbd15c13f5bb -r c4d75d30430c dw.h --- a/dw.h Fri May 14 11:29:00 2021 +0000 +++ b/dw.h Fri May 14 11:41:31 2021 +0000 @@ -783,6 +783,8 @@ typedef struct _hpixmap { unsigned long width, height; jobject bitmap; + jobject typeface; + int fontsize; HWND handle; } *HPIXMAP;