Fl_Gl_Window with an overlay on X always resized any child windows even
if you turned resizable() off because it turned it back on to resize the overlay window. This patch avoids changing resizable(). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.0@1301 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
parent
9a602688e8
commit
1a5acb3782
@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Gl_Overlay.cxx,v 1.5.2.11 2000/06/29 07:23:56 spitzak Exp $"
|
// "$Id: Fl_Gl_Overlay.cxx,v 1.5.2.12 2000/09/15 07:52:51 spitzak Exp $"
|
||||||
//
|
//
|
||||||
// OpenGL overlay code for the Fast Light Tool Kit (FLTK).
|
// OpenGL overlay code for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@ -159,7 +159,7 @@ void Fl_Gl_Window::make_overlay() {
|
|||||||
if (can_do_overlay()) {
|
if (can_do_overlay()) {
|
||||||
_Fl_Gl_Overlay* o = new _Fl_Gl_Overlay(0,0,w(),h());
|
_Fl_Gl_Overlay* o = new _Fl_Gl_Overlay(0,0,w(),h());
|
||||||
overlay = o;
|
overlay = o;
|
||||||
add_resizable(*o);
|
add(*o);
|
||||||
o->show();
|
o->show();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -209,5 +209,5 @@ void Fl_Gl_Window::hide_overlay() {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Gl_Overlay.cxx,v 1.5.2.11 2000/06/29 07:23:56 spitzak Exp $".
|
// End of "$Id: Fl_Gl_Overlay.cxx,v 1.5.2.12 2000/09/15 07:52:51 spitzak Exp $".
|
||||||
//
|
//
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// "$Id: Fl_Gl_Window.cxx,v 1.12.2.16 2000/07/07 08:38:58 spitzak Exp $"
|
// "$Id: Fl_Gl_Window.cxx,v 1.12.2.17 2000/09/15 07:52:51 spitzak Exp $"
|
||||||
//
|
//
|
||||||
// OpenGL window code for the Fast Light Tool Kit (FLTK).
|
// OpenGL window code for the Fast Light Tool Kit (FLTK).
|
||||||
//
|
//
|
||||||
@ -281,7 +281,13 @@ void Fl_Gl_Window::flush() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Fl_Gl_Window::resize(int X,int Y,int W,int H) {
|
void Fl_Gl_Window::resize(int X,int Y,int W,int H) {
|
||||||
if (W != w() || H != h()) valid(0);
|
if (W != w() || H != h()) {
|
||||||
|
valid(0);
|
||||||
|
#ifndef _WIN32
|
||||||
|
if (!resizable() && overlay && overlay != this)
|
||||||
|
((Fl_Gl_Window*)overlay)->resize(0,0,W,H);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
Fl_Window::resize(X,Y,W,H);
|
Fl_Window::resize(X,Y,W,H);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -331,5 +337,5 @@ void Fl_Gl_Window::draw_overlay() {}
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
//
|
||||||
// End of "$Id: Fl_Gl_Window.cxx,v 1.12.2.16 2000/07/07 08:38:58 spitzak Exp $".
|
// End of "$Id: Fl_Gl_Window.cxx,v 1.12.2.17 2000/09/15 07:52:51 spitzak Exp $".
|
||||||
//
|
//
|
||||||
|
Loading…
x
Reference in New Issue
Block a user