summaryrefslogtreecommitdiff
path: root/src/Fl_Gl_Window.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2010-12-18 22:31:01 +0000
committerManolo Gouy <Manolo>2010-12-18 22:31:01 +0000
commitd01c9cdf5b000fa7565351bcf4602f2fbad08b83 (patch)
tree281b49dff07d0a67bb5d7474b74c77ab46dd7e4c /src/Fl_Gl_Window.cxx
parent403ee0ce23a0c62ffec254448a327bcc8158b34e (diff)
Mac OS: replaced several global functions by new member functions of Mac OS-specific Fl_X class.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8055 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Gl_Window.cxx')
-rw-r--r--src/Fl_Gl_Window.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Fl_Gl_Window.cxx b/src/Fl_Gl_Window.cxx
index 8b0f17142..3c897cb77 100644
--- a/src/Fl_Gl_Window.cxx
+++ b/src/Fl_Gl_Window.cxx
@@ -91,9 +91,8 @@ void Fl_Gl_Window::show() {
Fl_X::make_xid(this, g->vis, g->colormap);
if (overlay && overlay != this) ((Fl_Gl_Window*)overlay)->show();
#elif defined(__APPLE__)
- extern void MACsetContainsGLsubwindow(Fl_Window *);
if( ! parent() ) need_redraw=1;
- else MACsetContainsGLsubwindow( window() );
+ else Fl_X::i(window())->contains_GL_subwindow();
#endif
}
Fl_Window::show();
@@ -278,7 +277,7 @@ void Fl_Gl_Window::flush() {
// warning: the Quartz version should probably use Core GL (CGL) instead of AGL
//: clear previous clipping in this shared port
#if ! __LP64__
- GrafPtr port = GetWindowPort( MACwindowRef(this) );
+ GrafPtr port = GetWindowPort( Fl_X::i(this)->window_ref() );
Rect rect; SetRect( &rect, 0, 0, 0x7fff, 0x7fff );
GrafPtr old; GetPort( &old );
SetPort( port );