summaryrefslogtreecommitdiff
path: root/src/Fl_Window_Driver.H
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-09-01 11:55:41 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2022-09-01 11:55:41 +0200
commitb75d7526fde03a9a831fd21afa38efeaa5d55a24 (patch)
treea944512f05dacf3cccb07ab38c48d2fb085e2b38 /src/Fl_Window_Driver.H
parentb4686f0e5bc4cd871eab50e5e474a8c55ad61845 (diff)
Simplify Fl_Window_Driver::screen_num() member functions.
Diffstat (limited to 'src/Fl_Window_Driver.H')
-rw-r--r--src/Fl_Window_Driver.H7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Fl_Window_Driver.H b/src/Fl_Window_Driver.H
index 03333c958..ddc2100c7 100644
--- a/src/Fl_Window_Driver.H
+++ b/src/Fl_Window_Driver.H
@@ -43,7 +43,7 @@ class Fl_RGB_Image;
This class is only for internal use by the FLTK library.
- When porting FLTK to a new platform, many mothods in this class provide
+ When porting FLTK to a new platform, many methods in this class provide
a minimal default implementation. Some methods must be overridden to make
sure that the Graphics Driver will draw into the bitmap associated with
this window.
@@ -56,6 +56,7 @@ private:
protected:
Fl_Window *pWindow;
+ int screen_num_; // number of screen where window is mapped
void flush_Fl_Window(); // accessor to protected Fl_Window::flush()
public:
Fl_Window_Driver(Fl_Window *);
@@ -65,8 +66,8 @@ public:
static Fl_Window *find(fl_uintptr_t xid);
int wait_for_expose_value;
Fl_Offscreen other_xid; // offscreen bitmap (overlay and double-buffered windows)
- virtual int screen_num();
- virtual void screen_num(int) {}
+ int screen_num();
+ void screen_num(int n) { screen_num_ = n; }
// --- frequently used accessors to public window data