From d27c0261cbbf77396e70c46c5fdb3745a85e48c0 Mon Sep 17 00:00:00 2001 From: Jaakko Keränen Date: Wed, 30 Sep 2020 14:54:27 +0300 Subject: Windows: Use the system UI scaling factor Check for system UI scaling factor via Direct2D DPI values. --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 0a54a9eb..1e323d47 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -212,6 +212,9 @@ if (APPLE) MACOSX_BUNDLE_COPYRIGHT "© ${COPYRIGHT_YEAR} Jaakko Keränen" ) endif () +if (MSYS) + target_link_libraries (app PUBLIC d2d1 uuid) # querying DPI +endif () if (UNIX) target_link_libraries (app PUBLIC m) endif () -- cgit v1.2.3