Author: manolo
Date: 2013-04-19 02:20:56 -0700 (Fri, 19 Apr 2013)
New Revision: 9892
Log:
Cosmetic improvement of image used when dragging non-text data.
Minimum OS version has been verified.

Modified:
   branches/branch-1.3/src/Fl_cocoa.mm

Modified: branches/branch-1.3/src/Fl_cocoa.mm
===================================================================
--- branches/branch-1.3/src/Fl_cocoa.mm 2013-04-18 16:15:59 UTC (rev 9891)
+++ branches/branch-1.3/src/Fl_cocoa.mm 2013-04-19 09:20:56 UTC (rev 9892)
@@ -3191,7 +3191,7 @@
   fl_font(FL_HELVETICA, 10);
   p = text;
   int nl = 0;
-  while((q=strchr(p, '\n')) != NULL) { 
+  while(nl < 100 && (q=strchr(p, '\n')) != NULL) { 
     nl++; 
     w2 = int(fl_width(p, q - p));
     if (w2 > width) width = w2;
@@ -3232,7 +3232,7 @@
 
 static NSImage *defaultDragImage(int *pwidth, int *pheight)
 {
-  const int version_threshold = 100800;
+  const int version_threshold = 100700;
   int width, height;
   if (fl_mac_os_version >= version_threshold) {
     width = 50; height = 40;
@@ -3246,7 +3246,7 @@
     fl_font(FL_HELVETICA, 20);
     fl_color(FL_BLACK);
     char str[4];
-    int l = fl_utf8encode(0x1F69A, str); // the "Delivery truck" Unicode 
character
+    int l = fl_utf8encode(0x1F69A, str); // the "Delivery truck" Unicode 
character from "Apple Color Emoji" font
     fl_draw(str, l, 1, 16);
     }
   else { // draw two squares

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to