|
|
|
@ -102,8 +102,8 @@ static GLFWbool loadLibraries(void) |
|
|
|
|
_glfw.win32.shcore.instance = LoadLibraryA("shcore.dll"); |
|
|
|
|
if (_glfw.win32.shcore.instance) |
|
|
|
|
{ |
|
|
|
|
_glfw.win32.shcore.SetProcessDPIAwareness = (SETPROCESSDPIAWARENESS_T) |
|
|
|
|
GetProcAddress(_glfw.win32.shcore.instance, "SetProcessDPIAwareness"); |
|
|
|
|
_glfw.win32.shcore.SetProcessDpiAwareness = (SETPROCESSDPIAWARENESS_T) |
|
|
|
|
GetProcAddress(_glfw.win32.shcore.instance, "SetProcessDpiAwareness"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return GLFW_TRUE; |
|
|
|
@ -357,8 +357,8 @@ int _glfwPlatformInit(void) |
|
|
|
|
|
|
|
|
|
createKeyTables(); |
|
|
|
|
|
|
|
|
|
if (_glfw_SetProcessDPIAwareness) |
|
|
|
|
_glfw_SetProcessDPIAwareness(PROCESS_PER_MONITOR_DPI_AWARE); |
|
|
|
|
if (_glfw_SetProcessDpiAwareness) |
|
|
|
|
_glfw_SetProcessDpiAwareness(PROCESS_PER_MONITOR_DPI_AWARE); |
|
|
|
|
else if (_glfw_SetProcessDPIAware) |
|
|
|
|
_glfw_SetProcessDPIAware(); |
|
|
|
|
|
|
|
|
|