Author: manolo
Date: 2011-05-11 11:09:43 -0700 (Wed, 11 May 2011)
New Revision: 8653
Log:
On Mac OS, FL_HIDE is now sent when a window is minimized or the application is
hidden.
The context removal on Fl_Gl_Window::handle() destroyed the GL colors when the
window
is remapped.
Modified:
branches/branch-1.3/src/Fl_Gl_Window.cxx
Modified: branches/branch-1.3/src/Fl_Gl_Window.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Gl_Window.cxx 2011-05-11 15:51:38 UTC (rev
8652)
+++ branches/branch-1.3/src/Fl_Gl_Window.cxx 2011-05-11 18:09:43 UTC (rev
8653)
@@ -543,16 +543,16 @@
int Fl_Gl_Window::handle(int event)
{
#ifdef __APPLE_QUARTZ__
- if (event==FL_HIDE) {
+ /*if (event==FL_HIDE) {
// if we are not hidden, just the parent was hidden, so we must throw away
the context
if (!visible_r())
- context(0); // remove context wthout setting the hidden flags
+ context(0); // remove context without setting the hidden flags
}
if (event==FL_SHOW) {
// if we are not hidden, just the parent was shown, so we must create a
new context
if (visible_r())
show(); //
- }
+ }*/
#endif
return Fl_Window::handle(event);
}
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit