Call SetProcessDPIAware
This commit is contained in:
parent
433126e7a1
commit
367beb52cd
|
@ -38,6 +38,7 @@ int WINAPI
|
|||
WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
|
||||
{
|
||||
DaemonApp app;
|
||||
SetProcessDPIAware();
|
||||
return app.run(__argc, __argv);
|
||||
}
|
||||
|
||||
|
|
|
@ -138,6 +138,8 @@ AppUtilWindows::run(int argc, char** argv)
|
|||
throw std::runtime_error("Barrier only supports Windows XP SP3 and above.");
|
||||
}
|
||||
|
||||
|
||||
SetProcessDPIAware();
|
||||
// record window instance for tray icon, etc
|
||||
ArchMiscWindows::setInstanceWin32(GetModuleHandle(NULL));
|
||||
|
||||
|
|
|
@ -84,6 +84,7 @@ DaemonApp::~DaemonApp()
|
|||
int
|
||||
DaemonApp::run(int argc, char** argv)
|
||||
{
|
||||
SetProcessDPIAware();
|
||||
// win32 instance needed for threading, etc.
|
||||
ArchMiscWindows::setInstanceWin32(GetModuleHandle(NULL));
|
||||
|
||||
|
|
Loading…
Reference in New Issue