summaryrefslogtreecommitdiff
path: root/src/drivers/WinAPI
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/WinAPI')
-rw-r--r--src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H4
-rw-r--r--src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx1
2 files changed, 4 insertions, 1 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H
index 3bbd51d59..816b667f6 100644
--- a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H
+++ b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.H
@@ -41,6 +41,8 @@ protected:
public:
float dpi[MAX_SCREENS][2];
+ enum APP_SCALING_CAPABILITY scaling_capability;
+ void update_scaling_capability();
Fl_WinAPI_Screen_Driver();
// --- display management
int visual(int flags) FL_OVERRIDE;
@@ -72,7 +74,7 @@ public:
void open_display_platform() FL_OVERRIDE;
void offscreen_size(Fl_Offscreen off, int &width, int &height) FL_OVERRIDE;
APP_SCALING_CAPABILITY rescalable() FL_OVERRIDE {
- return PER_SCREEN_APP_SCALING;
+ return scaling_capability;
}
float scale(int n) FL_OVERRIDE {
return scale_of_screen[n];
diff --git a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx
index 452815afb..83f8f8973 100644
--- a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx
+++ b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx
@@ -48,6 +48,7 @@ static Fl_Text_Editor::Key_Binding extra_bindings[] = {
Fl_WinAPI_Screen_Driver::Fl_WinAPI_Screen_Driver() : Fl_Screen_Driver() {
text_editor_extra_key_bindings = extra_bindings;
for (int i = 0; i < MAX_SCREENS; i++) scale_of_screen[i] = 1;
+ scaling_capability = SYSTEMWIDE_APP_SCALING;
}
int Fl_WinAPI_Screen_Driver::visual(int flags)