add comment to code

This commit is contained in:
Jeff Stamerjohn 2022-01-29 14:16:04 -09:00
parent 4ee8913284
commit 9b57c5b227
1 changed files with 3 additions and 0 deletions

View File

@ -138,6 +138,9 @@ AppUtilWindows::run(int argc, char** argv)
throw std::runtime_error("Barrier only supports Windows XP SP3 and above."); 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(); SetProcessDPIAware();
// record window instance for tray icon, etc // record window instance for tray icon, etc
ArchMiscWindows::setInstanceWin32(GetModuleHandle(NULL)); ArchMiscWindows::setInstanceWin32(GetModuleHandle(NULL));