summaryrefslogtreecommitdiff
path: root/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-03-01 14:00:43 +0100
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2024-03-01 14:00:43 +0100
commitcc15700bdb918699b6977140f27f6183efc3ac76 (patch)
treeaea308f5ef184095c98a35cc719ed238226a7235 /src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx
parent266647d2a7cb0a9f28be5a035996ec43b6419b04 (diff)
Windows: improve changing scale values of display while app runs.
Diffstat (limited to 'src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx')
-rw-r--r--src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx
index 83f8f8973..df6906bb4 100644
--- a/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx
+++ b/src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx
@@ -483,3 +483,8 @@ int Fl_WinAPI_Screen_Driver::screen_num_unscaled(int x, int y)
}
return screen;
}
+
+
+float Fl_WinAPI_Screen_Driver::base_scale(int numscreen) {
+ return dpi[numscreen][0] / 96.;
+}