diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-03-01 14:00:43 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2024-03-01 14:00:43 +0100 |
| commit | cc15700bdb918699b6977140f27f6183efc3ac76 (patch) | |
| tree | aea308f5ef184095c98a35cc719ed238226a7235 /src/drivers/WinAPI/Fl_WinAPI_Screen_Driver.cxx | |
| parent | 266647d2a7cb0a9f28be5a035996ec43b6419b04 (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.cxx | 5 |
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.; +} |
