changeset 97:6ee93d12e8d6 default tip

Android: Remove android workarounds not needed with render safe mode. Enable render safe drawing mode on all platforms.
author Brian Smith <brian@dbsoft.org>
date Wed, 03 May 2023 17:33:24 -0500
parents acce9f9e6d57
children
files cc.c
diffstat 1 files changed, 8 insertions(+), 14 deletions(-) [+]
line wrap: on
line diff
--- a/cc.c	Sun Mar 12 17:13:12 2023 -0500
+++ b/cc.c	Wed May 03 17:33:24 2023 -0500
@@ -714,20 +714,9 @@
 
 	if(inst)
 	{
-#ifdef __ANDROID__
-		if(dw_mutex_trylock(hMtx) == DW_ERROR_NONE)
-		{
-#else
-			dw_mutex_lock(hMtx);
-#endif
-			inst->Draw(inst);
-
-			dw_mutex_unlock(hMtx);
-#ifdef __ANDROID__
-		}
-		else
-			dw_render_redraw(hwnd);
-#endif
+		dw_mutex_lock(hMtx);
+		inst->Draw(inst);
+		dw_mutex_unlock(hMtx);
 	}
 	return TRUE;
 }
@@ -1557,6 +1546,11 @@
 
 	loadconfig();
 
+	/* Make sure safe rendering mode is enabled on all platforms.
+	 * This will prevent out of EXPOSE event rendering.
+	 */
+	dw_feature_set(DW_FEATURE_RENDER_SAFE, DW_FEATURE_ENABLED);
+
 	dw_init(TRUE, argc, argv);
 
 	sockinit();