diff options
| author | Manolo Gouy <Manolo> | 2011-01-24 21:00:17 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2011-01-24 21:00:17 +0000 |
| commit | 37180e08b3c748961509aab13b5f37f023d92175 (patch) | |
| tree | ed2093bb0fdce4943b8f2820c195c041cd35d294 /src | |
| parent | e3a96057c11c715e61f4b2fe1f29d9a11d1fff26 (diff) | |
Fix STR #2530 (Mac OS only)-continued. Use 512 blocks of 128 character widths-continued:
two 256->512 substitutions were missing.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8310 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/fl_font_mac.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fl_font_mac.cxx b/src/fl_font_mac.cxx index 10285129b..9a7f086b6 100644 --- a/src/fl_font_mac.cxx +++ b/src/fl_font_mac.cxx @@ -70,7 +70,7 @@ if (fl_mac_os_version >= 0x1050) {//unfortunately, CTFontCreateWithName != NULL 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 @@ Fl_Font_Descriptor::~Fl_Font_Descriptor() { #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]); } } |
