diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-06-07 16:57:21 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-06-07 16:57:21 +0000 |
| commit | 5bbc3512009df106ee434dff533381003659ca37 (patch) | |
| tree | 13fbfb075e434c841de3c43cb3d81d076e729cb2 /src | |
| parent | e8e33462496ca361fd54839f8c3246aadf56baf6 (diff) | |
Don't redraw outside label if the window hasn't been shown - otherwise
fl_open_display() gets called unnecessarily...
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2289 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx index 4fe276bed..ae199f122 100644 --- a/src/Fl.cxx +++ b/src/Fl.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl.cxx,v 1.24.2.41.2.36 2002/06/02 21:06:24 easysw Exp $" +// "$Id: Fl.cxx,v 1.24.2.41.2.37 2002/06/07 16:57:21 easysw Exp $" // // Main event handling code for the Fast Light Tool Kit (FLTK). // @@ -837,7 +837,7 @@ void Fl_Widget::redraw() { window()->damage(FL_DAMAGE_ALL, X, Y, w() + 2, h() + 2); } - if (align() && !(align() & FL_ALIGN_INSIDE)) { + if (align() && !(align() & FL_ALIGN_INSIDE) && window()->shown()) { // If the label is not inside the widget, compute the location of // the label and redraw the window within that bounding box... int W = 0, H = 0; @@ -931,5 +931,5 @@ void Fl_Window::flush() { } // -// End of "$Id: Fl.cxx,v 1.24.2.41.2.36 2002/06/02 21:06:24 easysw Exp $". +// End of "$Id: Fl.cxx,v 1.24.2.41.2.37 2002/06/07 16:57:21 easysw Exp $". // |
