From 416fe35c67352dd23ad698d8f732545caee3d82d Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Fri, 28 Dec 2018 21:40:36 +0100 Subject: add per-monitor dpi support --- widgetfactory.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'widgetfactory.cpp') 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)); -- cgit v1.2.3