diff options
| author | Manolo Gouy <Manolo> | 2018-05-12 09:36:36 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2018-05-12 09:36:36 +0000 |
| commit | 8b7f7c78b2595b22aac6e3269bb1fd4b1a213420 (patch) | |
| tree | 5c021102fa3d997d0084118bd583373e200ee480 /src/Fl_Widget_Surface.cxx | |
| parent | 5e785121e0351698b4b375b6c51653c9c3891211 (diff) | |
Remove public member function Fl_Window_Driver *Fl_Window::driver() so class Fl_Window_Driver is not in FLTK public API.
This function is replaced by static Fl_Window_Driver* Fl_Window_Driver::(const Fl_Window *win).
The purpose is to have class Fl_Window_Driver outside from FLTK ABI.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12915 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Widget_Surface.cxx')
| -rw-r--r-- | src/Fl_Widget_Surface.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Fl_Widget_Surface.cxx b/src/Fl_Widget_Surface.cxx index 68e785478..5812911ff 100644 --- a/src/Fl_Widget_Surface.cxx +++ b/src/Fl_Widget_Surface.cxx @@ -155,7 +155,7 @@ void Fl_Widget_Surface::print_window_part(Fl_Window *win, int x, int y, int w, i Fl_Window *save_front = Fl::first_window(); win->show(); Fl::check(); - win->driver()->flush(); // makes the window current + Fl_Window_Driver::driver(win)->flush(); // makes the window current Fl_RGB_Image *img = Fl_Screen_Driver::traverse_to_gl_subwindows(win, x, y, w, h, NULL); if (img) img->scale(w, h, 1, 1); if (save_front != win) save_front->show(); @@ -186,7 +186,7 @@ void Fl_Widget_Surface::draw_decorated_window(Fl_Window *win, int x_offset, int { Fl_RGB_Image *top=0, *left=0, *bottom=0, *right=0; if (win->border() && !win->parent()) { - win->driver()->capture_titlebar_and_borders(top, left, bottom, right); + Fl_Window_Driver::driver(win)->capture_titlebar_and_borders(top, left, bottom, right); } int wsides = left ? left->w() : 0; int toph = top ? top->h() : 0; |
