summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
authorManolo Gouy <Manolo>2018-05-22 17:00:27 +0000
committerManolo Gouy <Manolo>2018-05-22 17:00:27 +0000
commitce71c4b679b7afdb07de1133d0c600051e2601f6 (patch)
tree0a64edbcf68c8275bf512cd21e78bd69951a5b65 /FL
parent4c65d976e4a7eab9a881735c70c416eafc28f538 (diff)
Add Fl::screen_scale(int) function to get the scaling factor value of a screen.
This allows to keep class Fl_Screen_Driver away from the public API. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12926 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl.H1
-rw-r--r--FL/Fl_Window.H2
2 files changed, 2 insertions, 1 deletions
diff --git a/FL/Fl.H b/FL/Fl.H
index 775123b75..4cf19b030 100644
--- a/FL/Fl.H
+++ b/FL/Fl.H
@@ -1008,6 +1008,7 @@ int main() {
static void screen_work_area(int &X, int &Y, int &W, int &H, int mx, int my); // via screen driver
static void screen_work_area(int &X, int &Y, int &W, int &H, int n); // via screen driver
static void screen_work_area(int &X, int &Y, int &W, int &H); // via screen driver
+ static float screen_scale(int n); // via screen driver
/** @} */
diff --git a/FL/Fl_Window.H b/FL/Fl_Window.H
index 4153199bf..9ffe218e8 100644
--- a/FL/Fl_Window.H
+++ b/FL/Fl_Window.H
@@ -543,7 +543,7 @@ public:
void shape(const Fl_Image* img);
void shape(const Fl_Image& b) ;
int is_shaped();
- inline int screen_num();
+ int screen_num();
};
#endif