From cc15700bdb918699b6977140f27f6183efc3ac76 Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Fri, 1 Mar 2024 14:00:43 +0100 Subject: Windows: improve changing scale values of display while app runs. --- src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx') 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.; +} -- cgit v1.2.3