Fix SetProcessDpiAwareness case mismatch

Closes #678.
This commit is contained in:
Ioannis Tsakpinis 2015-12-30 16:20:40 +02:00 committed by Camilla Berglund
parent cf6c11cfaa
commit 06899bd9a6
2 changed files with 6 additions and 6 deletions

View File

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

View File

@ -138,7 +138,7 @@ typedef HRESULT (WINAPI * DWMFLUSH_T)(VOID);
// shcore.dll function pointer typedefs // shcore.dll function pointer typedefs
typedef HRESULT (WINAPI * SETPROCESSDPIAWARENESS_T)(PROCESS_DPI_AWARENESS); typedef HRESULT (WINAPI * SETPROCESSDPIAWARENESS_T)(PROCESS_DPI_AWARENESS);
#define _glfw_SetProcessDPIAwareness _glfw.win32.shcore.SetProcessDPIAwareness #define _glfw_SetProcessDpiAwareness _glfw.win32.shcore.SetProcessDpiAwareness
#include "win32_joystick.h" #include "win32_joystick.h"
@ -218,7 +218,7 @@ typedef struct _GLFWlibraryWin32
// shcore.dll // shcore.dll
struct { struct {
HINSTANCE instance; HINSTANCE instance;
SETPROCESSDPIAWARENESS_T SetProcessDPIAwareness; SETPROCESSDPIAWARENESS_T SetProcessDpiAwareness;
} shcore; } shcore;
} _GLFWlibraryWin32; } _GLFWlibraryWin32;