diff dwtest.c @ 2532:457c91634881

Added dw_window_compare() to check if two window handles refer to the same object. Most platforms just compare the pointer or handle, but Android uses IsSameObject().
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 11 May 2021 05:00:07 +0000
parents 5f92284e2b08
children bb75e64e6138
line wrap: on
line diff
--- a/dwtest.c	Tue May 11 00:51:20 2021 +0000
+++ b/dwtest.c	Tue May 11 05:00:07 2021 +0000
@@ -274,9 +274,9 @@
         HPIXMAP hpm;
         unsigned long width,height;
 
-        if (hwnd == textbox1)
+        if(dw_window_compare(hwnd, textbox1))
             hpm = text1pm;
-        else if(hwnd == textbox2)
+        else if(dw_window_compare(hwnd, textbox2))
             hpm = text2pm;
         else
             return TRUE;