diff options
| author | Manolo Gouy <Manolo> | 2017-07-20 11:04:59 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2017-07-20 11:04:59 +0000 |
| commit | 94c9d70f7c0c11ec53fab89abe30ff0af46f1582 (patch) | |
| tree | 53888c00e744e7ce6cf122f25aa9d426dfb001c4 /src/Fl_Widget_Surface.cxx | |
| parent | ae2cc545192790d97ec3300b768dd346bf2d47a7 (diff) | |
Make Fl_Widget_Surface::draw(Fl_Widget *wid, int, int) draw also the overlay if 'wid' is an Fl_Overlay_Window.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12343 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Widget_Surface.cxx')
| -rw-r--r-- | src/Fl_Widget_Surface.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Fl_Widget_Surface.cxx b/src/Fl_Widget_Surface.cxx index 2a80b12d4..c7bcd93b1 100644 --- a/src/Fl_Widget_Surface.cxx +++ b/src/Fl_Widget_Surface.cxx @@ -77,6 +77,8 @@ void Fl_Widget_Surface::draw(Fl_Widget* widget, int delta_x, int delta_y) } if (!drawn_by_plugin) { widget->draw(); + Fl_Overlay_Window *over = (is_window ? widget->as_window()->as_overlay_window() : NULL); + if (over) over->draw_overlay(); } if (is_window && !widget->window()) fl_pop_clip(); // find subwindows of widget and print them |
