DO NOT REPLY TO THIS MESSAGE. INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.
[STR New]
Link: http://www.fltk.org/str.php?L2383
Version: 1.3-current
Applying a similar short-circuit to the Mac implementation (as seen in the
X / XFT / Win32 implementations) significantly speeds up drawing for the
Mac port that call this function a lot. See patch.
Link: http://www.fltk.org/str.php?L2383
Version: 1.3-current
Index: fl_set_fonts_mac.cxx
===================================================================
--- fl_set_fonts_mac.cxx (revision 7652)
+++ fl_set_fonts_mac.cxx (working copy)
@@ -60,6 +60,8 @@
Fl_Font Fl::set_fonts(const char* xstarname) {
#pragma unused ( xstarname )
+if (fl_free_font > FL_FREE_FONT) // if already called
+ return (Fl_Font)fl_free_font;
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
static SInt32 MACsystemVersion = 0;
if(MACsystemVersion == 0) Gestalt(gestaltSystemVersion, &MACsystemVersion);
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs