FLTK logo

[master] 12d699a - Win32 platform: add support of "PROCESS_PER_MONITOR_DPI_AWARE" set via manifest.

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.commit  ]
 
Previous Message ]Next Message ]

[master] 12d699a - Win32 platform: add support of "PROCESS_PER_MONITOR_DPI_AWARE" set via manifest. "ManoloFLTK" Dec 11, 2021  
 
commit 12d699a6503ed47c02a60586db6b0d6d8abb8b26
Author:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
AuthorDate: Sat Dec 11 16:39:11 2021 +0100
Commit:     ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>
CommitDate: Sat Dec 11 16:39:11 2021 +0100

    Win32 platform: add support of "PROCESS_PER_MONITOR_DPI_AWARE" set via manifest.

 src/Fl_win32.cxx | 1 +
 1 file changed, 1 insertion(+)

diff --git src/Fl_win32.cxx src/Fl_win32.cxx
index 8fb936d..b8dfa57 100644
--- src/Fl_win32.cxx
+++ 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);
Direct Link to Message ]
 
     
Previous Message ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.