Mercurial > dwindows
changeset 2534:c4255630cade
Android: Fix the safety check in the dw_draw_*() functions.
So we can actually draw on pixmaps, not just on render widgets.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 11 May 2021 06:38:09 +0000 |
parents | 7c863a3a125f |
children | d862d9e4069b |
files | android/dw.cpp |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/android/dw.cpp Tue May 11 05:14:56 2021 +0000 +++ b/android/dw.cpp Tue May 11 06:38:09 2021 +0000 @@ -2480,7 +2480,7 @@ { JNIEnv *env; - if(handle && (env = (JNIEnv *)pthread_getspecific(_dw_env_key))) + if((handle || pixmap) && (env = (JNIEnv *)pthread_getspecific(_dw_env_key))) { // First get the class that contains the method you need to call jclass clazz = _dw_find_class(env, DW_CLASS_NAME); @@ -2505,7 +2505,7 @@ { JNIEnv *env; - if(handle && (env = (JNIEnv *)pthread_getspecific(_dw_env_key))) + if((handle || pixmap) && (env = (JNIEnv *)pthread_getspecific(_dw_env_key))) { // First get the class that contains the method you need to call jclass clazz = _dw_find_class(env, DW_CLASS_NAME); @@ -2568,7 +2568,7 @@ { JNIEnv *env; - if(handle && (env = (JNIEnv *)pthread_getspecific(_dw_env_key))) + if((handle || pixmap) && (env = (JNIEnv *)pthread_getspecific(_dw_env_key))) { // First get the class that contains the method you need to call jclass clazz = _dw_find_class(env, DW_CLASS_NAME);