Author: manolo
Date: 2011-01-24 13:00:17 -0800 (Mon, 24 Jan 2011)
New Revision: 8310
Log:
Fix STR #2530 (Mac OS only)-continued. Use 512 blocks of 128 character 
widths-continued:
two 256->512 substitutions were missing.


Modified:
   branches/branch-1.3/src/fl_font_mac.cxx

Modified: branches/branch-1.3/src/fl_font_mac.cxx
===================================================================
--- branches/branch-1.3/src/fl_font_mac.cxx     2011-01-24 20:05:34 UTC (rev 
8309)
+++ branches/branch-1.3/src/fl_font_mac.cxx     2011-01-24 21:00:17 UTC (rev 
8310)
@@ -70,7 +70,7 @@
   ascent = (short)(CTFontGetAscent(fontref) + 0.5);
   descent = (short)(CTFontGetDescent(fontref) + 0.5);
   q_width = w + 0.5;
-  for (int i = 0; i < 256; i++) width[i] = NULL;
+  for (int i = 0; i < 512; i++) width[i] = NULL;
   if (!attributes) {
     static CFNumberRef zero_ref;
     float zero = 0.;
@@ -181,7 +181,7 @@
 #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
   if (fl_mac_os_version >= 0x1050)  {
     CFRelease(fontref);
-    for (int i = 0; i < 256; i++) {
+    for (int i = 0; i < 512; i++) {
       if (width[i]) free(width[i]);
       }
   }

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

Reply via email to