Author: manolo
Date: 2010-03-14 00:50:22 -0800 (Sun, 14 Mar 2010)
New Revision: 7260
Log:
Allow running with OS X 10.4 and before
Modified:
branches/branch-1.3-Fl_Printer/src/Fl_Gl_Choice.cxx
Modified: branches/branch-1.3-Fl_Printer/src/Fl_Gl_Choice.cxx
===================================================================
--- branches/branch-1.3-Fl_Printer/src/Fl_Gl_Choice.cxx 2010-03-14 08:49:09 UTC
(rev 7259)
+++ branches/branch-1.3-Fl_Printer/src/Fl_Gl_Choice.cxx 2010-03-14 08:50:22 UTC
(rev 7260)
@@ -315,11 +315,15 @@
aglEnable( (GLContext)context, AGL_BUFFER_RECT );
}
#if defined(__APPLE_COCOA__)
+
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5
- aglSetWindowRef(context, MACwindowRef(window) );
-#else
+ if (aglSetWindowRef != NULL) {
+ aglSetWindowRef(context, MACwindowRef(window) );
+ }
+ else
+#endif
aglSetDrawable( context, GetWindowPort( MACwindowRef(window) ) );
-#endif
+
#else
aglSetDrawable( context, GetWindowPort( fl_xid(window) ) );
#endif
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit