diff options
Diffstat (limited to 'src/gl_start.cxx')
| -rw-r--r-- | src/gl_start.cxx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/gl_start.cxx b/src/gl_start.cxx index f57767bda..ba435baa1 100644 --- a/src/gl_start.cxx +++ b/src/gl_start.cxx @@ -1,5 +1,5 @@ // -// "$Id: gl_start.cxx,v 1.6.2.5.2.4 2001/12/09 12:52:13 easysw Exp $" +// "$Id: gl_start.cxx,v 1.6.2.5.2.5 2001/12/18 11:00:09 matthiaswm Exp $" // // OpenGL context routines for the Fast Light Tool Kit (FLTK). // @@ -54,6 +54,10 @@ static int pw, ph; static Fl_Gl_Choice* gl_choice; #endif +#ifdef __APPLE__ +static Fl_Gl_Choice* gl_choice; +#endif + Fl_Region XRectangleRegion(int x, int y, int w, int h); // in fl_rect.cxx void gl_start() { @@ -62,7 +66,8 @@ void gl_start() { if (!gl_choice) Fl::gl_visual(0); context = fl_create_gl_context(Fl_Window::current(), gl_choice); #elif defined(__APPLE__) - //++ + //++ Matt: We need to check the code and verify it with Apple Sample code. 'shiny' give some output... + context = fl_create_gl_context(Fl_Window::current(), gl_choice); #else context = fl_create_gl_context(fl_visual); #endif @@ -106,7 +111,7 @@ int Fl::gl_visual(int mode, int *alist) { #ifdef WIN32 gl_choice = c; #elif defined(__APPLE__) - //++ + gl_choice = c; #else fl_visual = c->vis; fl_colormap = c->colormap; @@ -117,5 +122,5 @@ int Fl::gl_visual(int mode, int *alist) { #endif // -// End of "$Id: gl_start.cxx,v 1.6.2.5.2.4 2001/12/09 12:52:13 easysw Exp $". +// End of "$Id: gl_start.cxx,v 1.6.2.5.2.5 2001/12/18 11:00:09 matthiaswm Exp $". // |
