summaryrefslogtreecommitdiff
path: root/widgetfactory.cpp
diff options
context:
space:
mode:
authorJonas Kümmerlin <jonas@kuemmerlin.eu>2018-12-28 21:40:36 +0100
committerJonas Kümmerlin <jonas@kuemmerlin.eu>2018-12-28 21:40:36 +0100
commit416fe35c67352dd23ad698d8f732545caee3d82d (patch)
tree3a328b3e30d8ed0048fa342547efab413e971872 /widgetfactory.cpp
parenta5f3ea9ac12fccbc9faf3f152d4dfbe7f263268e (diff)
add per-monitor dpi support
Diffstat (limited to 'widgetfactory.cpp')
-rw-r--r--widgetfactory.cpp5
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));