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_Double_Window.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_Double_Window.cxx')
| -rw-r--r-- | src/Fl_Double_Window.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Fl_Double_Window.cxx b/src/Fl_Double_Window.cxx index b6456dab2..54421c191 100644 --- a/src/Fl_Double_Window.cxx +++ b/src/Fl_Double_Window.cxx @@ -54,15 +54,15 @@ void Fl_Double_Window::resize(int X,int Y,int W,int H) { int oh = h(); Fl_Window::resize(X,Y,W,H); Fl_X *myi = Fl_X::i(this); - if (myi && driver()->other_xid && (ow < w() || oh < h() || Fl_Window_Driver::is_a_rescale())) - driver()->destroy_double_buffer(); + if (myi && Fl_Window_Driver::driver(this)->other_xid && (ow < w() || oh < h() || Fl_Window_Driver::is_a_rescale())) + Fl_Window_Driver::driver(this)->destroy_double_buffer(); } void Fl_Double_Window::hide() { Fl_X *myi = Fl_X::i(this); - if (myi && driver()->other_xid) { - driver()->destroy_double_buffer(); + if (myi && Fl_Window_Driver::driver(this)->other_xid) { + Fl_Window_Driver::driver(this)->destroy_double_buffer(); } Fl_Window::hide(); } @@ -70,7 +70,7 @@ void Fl_Double_Window::hide() { void Fl_Double_Window::flush() { - driver()->flush_double(); + Fl_Window_Driver::driver(this)->flush_double(); } |
