diff dwtest.c @ 2031:c4fc33d70a8e

Mac: Removed delayed setNeedsDisplay:YES to fix the incorrect dwtest file rendering. This is working without proble on Catalina... need to retest on Mojave and perhaps reimplement the delay only for Mojave.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 15 Nov 2019 03:31:17 +0000
parents a9809db1ddbf
children 466cf00f409f
line wrap: on
line diff
--- a/dwtest.c	Thu Nov 14 12:08:54 2019 +0000
+++ b/dwtest.c	Fri Nov 15 03:31:17 2019 +0000
@@ -1747,7 +1747,7 @@
     
     if(hwndstatus && url && status < 5)
     {
-        int length = strlen(url) + strlen(statusnames[status]) + 10;
+        int length = (int)strlen(url) + (int)strlen(statusnames[status]) + 10;
         char *text = calloc(1, length+1);
 
         snprintf(text, length, "Status %s: %s", statusnames[status], url);
@@ -1910,7 +1910,7 @@
     dw_signal_connect(mainwindow, DW_SIGNAL_DELETE, DW_SIGNAL_FUNC(exit_callback), DW_POINTER(mainwindow));
     /*
      * The following is a special case handler for the Mac and other platforms which contain
-     * an application object which can be closed.  It function identically to a window delete/close
+     * an application object which can be closed.  It functions identically to a window delete/close
      * request except it applies to the entire application not an individual window. If it is not
      * handled or you allow the default handler to take place the entire application will close.
      * On platforms which do not have an application object this line will be ignored.