FLTK logo

[Library] r8653 - branches/branch-1.3/src

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 

[Library] r8653 - branches/branch-1.3/src fltk-dev May 11, 2011  
  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);
 }



Direct Link to Message ]
 
     
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.