From c88466928db4ecdeb4e6c6eb84c873319d02ec7d Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Fri, 28 Jul 2017 15:51:05 +0000 Subject: 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 --- FL/Fl_Window_Driver.H | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'FL') diff --git a/FL/Fl_Window_Driver.H b/FL/Fl_Window_Driver.H index a667962de..044363236 100644 --- a/FL/Fl_Window_Driver.H +++ b/FL/Fl_Window_Driver.H @@ -44,16 +44,14 @@ class FL_EXPORT Fl_Window_Driver { friend class Fl_Window; friend class Fl_X; - friend class Fl_Group; - friend class Fl_Gl_Window; - friend class Fl_Double_Window; +private: + static bool is_a_rescale_; // true when a top-level window is being rescaled protected: Fl_Window *pWindow; struct shape_data_type; shape_data_type *shape_data_; ///< non-null means the window has a non-rectangular shape void flush_Fl_Window(); // accessor to protected Fl_Window::flush() - static bool is_a_rescale; // true when the window is rescaling public: Fl_Window_Driver(Fl_Window *); virtual ~Fl_Window_Driver(); @@ -62,6 +60,8 @@ public: Fl_Offscreen other_xid; // offscreen bitmap (overlay and double-buffered windows) virtual int screen_num(); virtual void screen_num(int) {} + static bool is_a_rescale() {return is_a_rescale_;}; + // --- frequently used accessors to public window data /** returns the x coordinate of the window. */ -- cgit v1.2.3