diff options
| author | Manolo Gouy <Manolo> | 2016-03-11 07:07:42 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2016-03-11 07:07:42 +0000 |
| commit | 2952c530b856c5cca973fef34edc5d738fb8c0f7 (patch) | |
| tree | 2bd14373989d6e0a915c84c3ec8b0a26f831be66 /src/Fl_Widget_Surface.cxx | |
| parent | 914248bbf04675f2e8096dadae4ffa35e6982293 (diff) | |
Rewrite capture of window decorations using the window driver approach.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11345 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Widget_Surface.cxx')
| -rw-r--r-- | src/Fl_Widget_Surface.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Fl_Widget_Surface.cxx b/src/Fl_Widget_Surface.cxx index 8f792565f..e7c783dc5 100644 --- a/src/Fl_Widget_Surface.cxx +++ b/src/Fl_Widget_Surface.cxx @@ -20,6 +20,7 @@ #include <FL/fl_draw.H> #include <FL/Fl.H> #include <FL/Fl_Shared_Image.H> +#include <FL/Fl_Window_Driver.H> /** The constructor. @@ -193,7 +194,7 @@ int Fl_Widget_Surface::printable_rect(int *w, int *h) {return 1;} void Fl_Widget_Surface::draw_decorated_window(Fl_Window *win, int x_offset, int y_offset) { Fl_Shared_Image *top, *left, *bottom, *right; - win->capture_titlebar_and_borders(top, left, bottom, right); + win->driver()->capture_titlebar_and_borders(top, left, bottom, right); int wsides = left ? left->w() : 0; int toph = top ? top->h() : 0; if (top) { |
