Mercurial > dwindows
diff dw.h @ 2475:16d195d46f2a
Android: Implement dw_window_new(), dw_box_new() and dw_box_pack().
Initialize JNI when creating new threads.
Include jni.h from dw.h so we can type HWND as jobject.
Remove our own resize code, we are going to try to use LinearLayout.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 21 Apr 2021 11:15:26 +0000 |
parents | a13e6db064f4 |
children | fa976a5bc7bd |
line wrap: on
line diff
--- a/dw.h Mon Apr 19 23:06:25 2021 +0000 +++ b/dw.h Wed Apr 21 11:15:26 2021 +0000 @@ -725,6 +725,7 @@ /* Android section */ #if defined(__ANDROID__) +#include <jni.h> #include <stdio.h> #include <stdlib.h> #include <stdarg.h> @@ -739,7 +740,7 @@ #define TRUE 1 #define FALSE 0 -typedef void *HWND; +typedef jobject HWND; typedef unsigned long ULONG; typedef long LONG;