diff options
Diffstat (limited to 'widgetfactory.cpp')
| -rw-r--r-- | widgetfactory.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/widgetfactory.cpp b/widgetfactory.cpp index 478d57f..5599404 100644 --- a/widgetfactory.cpp +++ b/widgetfactory.cpp @@ -52,10 +52,7 @@ wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCm (void)lpCmdLine; (void)nCmdShow; - BOOL (*pSetProcessDpiAware)(void); - pSetProcessDpiAware = (BOOL (*)(void))GetProcAddress(GetModuleHandle(L"user32.dll"), "SetProcessDPIAware"); - if (pSetProcessDpiAware) - pSetProcessDpiAware(); + ALF_SetDpiAwareness(ALF_DPI_AWARENESS_PER_MONITOR_AWARE_V2); red = CreateSolidBrush(RGB(255,0,0)); green = CreateSolidBrush(RGB(0,255,0)); |
