Fixed warning in Fl_Gl_Choice.cxx

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8175 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Manolo Gouy 2011-01-03 20:51:17 +00:00
parent 523a2ed9b7
commit d4d4a24eff
2 changed files with 3 additions and 1 deletions

View File

@ -296,6 +296,7 @@ GLContext fl_create_gl_context(Fl_Window* window, const Fl_Gl_Choice* g, int lay
}
# elif defined(__APPLE_QUARTZ__)
#if !(MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_5 && __LP64__)
static CGrafPtr fl_GetWindowPort(WindowRef window)
{
typedef CGrafPtr (*wf)(WindowRef);
@ -303,6 +304,7 @@ static CGrafPtr fl_GetWindowPort(WindowRef window)
if ( ! f) f = (wf)Fl_X::get_carbon_function("GetWindowPort");
return (*f)(window);
}
#endif
// warning: the Quartz version should probably use Core GL (CGL) instead of AGL
GLContext fl_create_gl_context(Fl_Window* window, const Fl_Gl_Choice* g, int layer) {

View File

@ -864,7 +864,7 @@ static void calc_e_text(CFStringRef s, char *buffer, size_t len, unsigned sym)
static int cocoaKeyboardHandler(NSEvent *theEvent);
@interface FLTextView : NSTextView
// this subclass is needed under OS X 10.3 and 10.4 but not under 10.6 where the base class is enough
// this subclass is needed under OS X <= 10.4 but not under >= 10.5 where the base class is enough
{
}
@end