Fix type
This commit is contained in:
parent
0d2c5b2c91
commit
0887e68641
|
@ -85,11 +85,11 @@ static void enableHighDpiScaling()
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setprocessdpiawarenesscontext
|
// https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-setprocessdpiawarenesscontext
|
||||||
static auto user32 = LoadLibraryW(L"user32.dll");
|
static HMODULE user32 = LoadLibraryW(L"user32.dll");
|
||||||
if(user32)
|
if(user32)
|
||||||
{
|
{
|
||||||
typedef unsigned int(*pfnSetProcessDpiAwarenessContext)(int value);
|
typedef unsigned int(*pfnSetProcessDpiAwarenessContext)(int value);
|
||||||
static auto pSetProcessDpiAwarenessContext = (pfnSetProcessDpiAwarenessContext)GetProcAddress(user32, "SetProcessDpiAwarenessContext");
|
static pfnSetProcessDpiAwarenessContext pSetProcessDpiAwarenessContext = (pfnSetProcessDpiAwarenessContext)GetProcAddress(user32, "SetProcessDpiAwarenessContext");
|
||||||
if(pSetProcessDpiAwarenessContext)
|
if(pSetProcessDpiAwarenessContext)
|
||||||
{
|
{
|
||||||
pSetProcessDpiAwarenessContext(/*DPI_AWARENESS_CONTEXT_SYSTEM_AWARE*/-2);
|
pSetProcessDpiAwarenessContext(/*DPI_AWARENESS_CONTEXT_SYSTEM_AWARE*/-2);
|
||||||
|
|
Loading…
Reference in New Issue