summaryrefslogtreecommitdiff
path: root/src/Fl.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2018-05-12 09:36:36 +0000
committerManolo Gouy <Manolo>2018-05-12 09:36:36 +0000
commit8b7f7c78b2595b22aac6e3269bb1fd4b1a213420 (patch)
tree5c021102fa3d997d0084118bd583373e200ee480 /src/Fl.cxx
parent5e785121e0351698b4b375b6c51653c9c3891211 (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.cxx')
-rw-r--r--src/Fl.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl.cxx b/src/Fl.cxx
index 8695add93..6e60e524c 100644
--- a/src/Fl.cxx
+++ b/src/Fl.cxx
@@ -695,10 +695,10 @@ void Fl::flush() {
damage_ = 0;
for (Fl_X* i = Fl_X::first; i; i = i->next) {
Fl_Window* wi = i->w;
- if (wi->driver()->wait_for_expose_value) {damage_ = 1; continue;}
+ if (Fl_Window_Driver::driver(wi)->wait_for_expose_value) {damage_ = 1; continue;}
if (!wi->visible_r()) continue;
if (wi->damage()) {
- wi->driver()->flush();
+ Fl_Window_Driver::driver(wi)->flush();
wi->clear_damage();
}
// destroy damage regions for windows that don't use them:
@@ -912,7 +912,7 @@ void Fl::focus(Fl_Widget *o)
while (w1) { win=w1; w1=win->window(); }
if (win) {
if (fl_xfocus != win) {
- win->driver()->take_focus();
+ Fl_Window_Driver::driver(win)->take_focus();
fl_xfocus = win;
}
}