changeset 2648:2362cb4b7ef9

iOS: Fix another _dw_main_iteration() loop issue. Also center seems to be a differnet value on iOS and Mac ARM.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 31 Aug 2021 09:18:04 +0000
parents 34c4cb84834a
children 76d876c441c9
files dw.h ios/dw.m
diffstat 2 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/dw.h	Tue Aug 31 08:57:46 2021 +0000
+++ b/dw.h	Tue Aug 31 09:18:04 2021 +0000
@@ -416,7 +416,7 @@
 #define DW_DT_STRIKEOUT          0
 #define DW_DT_TEXTATTRS          0
 #define DW_DT_EXTERNALLEADING    0
-#ifdef __aarch64__
+#if defined(__aarch64__) || defined(__IOS__)
 #define DW_DT_CENTER             1 /* NSTextAlignmentCenter */
 #define DW_DT_RIGHT              2 /* NSTextAlignmentRight */
 #else
--- a/ios/dw.m	Tue Aug 31 08:57:46 2021 +0000
+++ b/ios/dw.m	Tue Aug 31 09:18:04 2021 +0000
@@ -3239,11 +3239,8 @@
         {
             DWThread = curr;
         }
-       /* Process any pending events */
-        while(_dw_main_iteration(until))
-        {
-            /* Just loop */
-        }
+        /* Process any pending events */
+        _dw_main_iteration(until);
         if(orig == (DWTID)-1)
         {
             DWThread = orig;