summaryrefslogtreecommitdiff
path: root/src/Fl_Window_Driver.cxx
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2017-07-28 15:51:05 +0000
committerManolo Gouy <Manolo>2017-07-28 15:51:05 +0000
commitc88466928db4ecdeb4e6c6eb84c873319d02ec7d (patch)
tree4a56a225eb62566bbe000b10196790207774e64d /src/Fl_Window_Driver.cxx
parent879c4df5bd5247a72900915a5c2fc7b9bb308b95 (diff)
Replace static protected bool Fl_Window_Driver::is_a_rescale by a private static variable and a public getter.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12364 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Window_Driver.cxx')
-rw-r--r--src/Fl_Window_Driver.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Fl_Window_Driver.cxx b/src/Fl_Window_Driver.cxx
index 288ac8257..b16435dcf 100644
--- a/src/Fl_Window_Driver.cxx
+++ b/src/Fl_Window_Driver.cxx
@@ -257,7 +257,7 @@ int Fl_Window_Driver::screen_num() {
return Fl::screen_num(x(), y(), w(), h());
}
-bool Fl_Window_Driver::is_a_rescale = false;
+bool Fl_Window_Driver::is_a_rescale_ = false;
void Fl_Window_Driver::resize_after_scale_change(int ns, float old_f, float new_f) {
screen_num(ns);
@@ -268,10 +268,10 @@ void Fl_Window_Driver::resize_after_scale_change(int ns, float old_f, float new_
} else {
W = pWindow->w(); H = pWindow->h();
}
- is_a_rescale = true;
+ is_a_rescale_ = true;
size_range();
pWindow->resize(pWindow->x()*old_f/new_f, pWindow->y()*old_f/new_f, W, H);
- is_a_rescale = false;
+ is_a_rescale_ = false;
}
//