summaryrefslogtreecommitdiff
path: root/src/Fl_Gl_Overlay.cxx
diff options
context:
space:
mode:
authorBill Spitzak <spitzak@gmail.com>1999-10-23 05:59:27 +0000
committerBill Spitzak <spitzak@gmail.com>1999-10-23 05:59:27 +0000
commitecd524fdc7384c48e7cdde001dc479a5d795ee88 (patch)
treecc699b3e0a957eba1ebfa37a3f7942c77dfe21a7 /src/Fl_Gl_Overlay.cxx
parent06ea565dbae6fdb6a5f55f61b50f925540c5f1af (diff)
Calling deactivate() from a non-displayed widget could cause an infinite
loop. I didn't really fix this, but I removed deactivate() from constructors and replaced with set_flag(INACTIVE). The loop would happen if a widget responded to FL_MOVE by calling draw_overlay or otherwise creating an overlay, which is a pretty rare event. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@792 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Gl_Overlay.cxx')
-rw-r--r--src/Fl_Gl_Overlay.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_Gl_Overlay.cxx b/src/Fl_Gl_Overlay.cxx
index 8c8cf3428..fe67cfb7f 100644
--- a/src/Fl_Gl_Overlay.cxx
+++ b/src/Fl_Gl_Overlay.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Gl_Overlay.cxx,v 1.5.2.1 1999/09/16 05:34:25 bill Exp $"
+// "$Id: Fl_Gl_Overlay.cxx,v 1.5.2.2 1999/10/23 05:59:26 bill Exp $"
//
// OpenGL overlay code for the Fast Light Tool Kit (FLTK).
//
@@ -70,7 +70,7 @@ public:
overlay_choice.d = 0;
overlay_choice.o = 1;
g = &overlay_choice;
- deactivate();
+ set_flag(INACTIVE);
}
};
@@ -195,5 +195,5 @@ void Fl_Gl_Window::hide_overlay() {
#endif
//
-// End of "$Id: Fl_Gl_Overlay.cxx,v 1.5.2.1 1999/09/16 05:34:25 bill Exp $".
+// End of "$Id: Fl_Gl_Overlay.cxx,v 1.5.2.2 1999/10/23 05:59:26 bill Exp $".
//