changeset 2697:4470089e14b3

Android: Implement dw_window_function(). Call the function directly on Android. Essential only Kotlin/Java code runs on the UI thread on Android... with the exception of expose callbacks... so should be safe to just run on any thread.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 02 Nov 2021 22:34:17 +0000
parents bc7c16800892
children 5c43d1ee9736
files android/dw.cpp
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/android/dw.cpp	Tue Nov 02 20:17:37 2021 +0000
+++ b/android/dw.cpp	Tue Nov 02 22:34:17 2021 +0000
@@ -5221,6 +5221,12 @@
  */
 void API dw_window_function(HWND handle, void *function, void *data)
 {
+    void (* windowfunc)(void *);
+
+    windowfunc = (void (*)(void *))function;
+
+    if(windowfunc)
+        windowfunc(data);
 }