diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2021-12-11 16:39:11 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2021-12-11 16:39:11 +0100 |
| commit | 12d699a6503ed47c02a60586db6b0d6d8abb8b26 (patch) | |
| tree | f437b26b0a73b219bd7b8ee19839a3820baef47c | |
| parent | 20f7db27ba7dc1cf9b2afc4b0e2dc2dda9c8d4de (diff) | |
Win32 platform: add support of "PROCESS_PER_MONITOR_DPI_AWARE" set via manifest.
| -rw-r--r-- | src/Fl_win32.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Fl_win32.cxx b/src/Fl_win32.cxx index 8fb936ddd..b8dfa57f0 100644 --- a/src/Fl_win32.cxx +++ b/src/Fl_win32.cxx @@ -561,6 +561,7 @@ void Fl_WinAPI_Screen_Driver::open_display_platform() { if (!fl_GetProcessDpiAwareness || fl_GetProcessDpiAwareness(NULL, &awareness) != S_OK) { awareness = 0; //corresponds to PROCESS_DPI_UNAWARE; } + if (awareness == 2 /*PROCESS_PER_MONITOR_DPI_AWARE*/) is_dpi_aware = true; if (awareness == 0 /*PROCESS_DPI_UNAWARE*/) { // DpiAwareness has not been set via a manifest typedef void *fl_DPI_AWARENESS_CONTEXT; typedef BOOL(WINAPI * SetProcessDpiAwarenessContext_type)(fl_DPI_AWARENESS_CONTEXT); |
