From 9b57c5b227f955c529f6b6b72ad240a757addf16 Mon Sep 17 00:00:00 2001 From: Jeff Stamerjohn Date: Sat, 29 Jan 2022 14:16:04 -0900 Subject: [PATCH] add comment to code --- src/lib/barrier/win32/AppUtilWindows.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/barrier/win32/AppUtilWindows.cpp b/src/lib/barrier/win32/AppUtilWindows.cpp index 2e86dfb0..e901b95d 100644 --- a/src/lib/barrier/win32/AppUtilWindows.cpp +++ b/src/lib/barrier/win32/AppUtilWindows.cpp @@ -138,6 +138,9 @@ AppUtilWindows::run(int argc, char** argv) throw std::runtime_error("Barrier only supports Windows XP SP3 and above."); } + // This changes the behavior of future calls to GetSystemMetrics() + // so that the size or position in raw pixels is returned instead of a scaled value + // (when a windows display has a Scale of > 100% set). SetProcessDPIAware(); // record window instance for tray icon, etc ArchMiscWindows::setInstanceWin32(GetModuleHandle(NULL));