Small fix for Visual Studio about DPI awareness code.
This commit is contained in:
parent
79efd51385
commit
a9da012d7d
@ -50,10 +50,10 @@ typedef enum PROCESS_DPI_AWARENESS {
|
|||||||
PROCESS_PER_MONITOR_DPI_AWARE = 2
|
PROCESS_PER_MONITOR_DPI_AWARE = 2
|
||||||
} PROCESS_DPI_AWARENESS;
|
} PROCESS_DPI_AWARENESS;
|
||||||
|
|
||||||
BOOL(WINAPI *SetProcessDPIAware)(void); // Vista and later
|
|
||||||
HRESULT(WINAPI *SetProcessDpiAwareness)(PROCESS_DPI_AWARENESS dpiAwareness); // Windows 8.1 and later
|
|
||||||
|
|
||||||
void setDpiAwareness() {
|
void setDpiAwareness() {
|
||||||
|
BOOL(WINAPI *SetProcessDPIAware)(void); // Vista and later
|
||||||
|
HRESULT(WINAPI *SetProcessDpiAwareness)(PROCESS_DPI_AWARENESS dpiAwareness); // Windows 8.1 and later
|
||||||
|
|
||||||
void *userDLL = SDL_LoadObject("USER32.DLL");
|
void *userDLL = SDL_LoadObject("USER32.DLL");
|
||||||
if (userDLL) {
|
if (userDLL) {
|
||||||
SetProcessDPIAware = (BOOL(WINAPI *)(void))SDL_LoadFunction(userDLL, "SetProcessDPIAware");
|
SetProcessDPIAware = (BOOL(WINAPI *)(void))SDL_LoadFunction(userDLL, "SetProcessDPIAware");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user