diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-05-04 12:49:31 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-05-04 12:49:31 +0000 |
| commit | 251ec79d40b549d5420042bd406642f68cd43bec (patch) | |
| tree | ec781c00bb7c2215f8af7b369881b0272ce02f6e /src/Fl_Window.cxx | |
| parent | e1c53284772b17b644abf898fb33c0d4fd632953 (diff) | |
Restore window label (title) after drawing the group.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2194 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Window.cxx')
| -rw-r--r-- | src/Fl_Window.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/Fl_Window.cxx b/src/Fl_Window.cxx index 355850ac1..7326a53e8 100644 --- a/src/Fl_Window.cxx +++ b/src/Fl_Window.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Window.cxx,v 1.6.2.3.2.4 2002/04/28 16:41:16 easysw Exp $" +// "$Id: Fl_Window.cxx,v 1.6.2.3.2.5 2002/05/04 12:49:31 easysw Exp $" // // Window widget class for the Fast Light Tool Kit (FLTK). // @@ -82,10 +82,14 @@ int Fl_Window::y_root() const { } void Fl_Window::draw() { + const char *savelabel = label(); int savex = x(); x(0); int savey = y(); y(0); + // Make sure we don't draw the window title in the window background... Fl_Widget::label(0); Fl_Group::draw(); + // Restore the label... + Fl_Widget::label(savelabel); y(savey); x(savex); } @@ -109,5 +113,5 @@ void Fl_Window::default_callback(Fl_Window* window, void* v) { } // -// End of "$Id: Fl_Window.cxx,v 1.6.2.3.2.4 2002/04/28 16:41:16 easysw Exp $". +// End of "$Id: Fl_Window.cxx,v 1.6.2.3.2.5 2002/05/04 12:49:31 easysw Exp $". // |
