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_DPI_AWARENESS;
|
||||
|
||||
void setDpiAwareness() {
|
||||
BOOL(WINAPI *SetProcessDPIAware)(void); // Vista and later
|
||||
HRESULT(WINAPI *SetProcessDpiAwareness)(PROCESS_DPI_AWARENESS dpiAwareness); // Windows 8.1 and later
|
||||
|
||||
void setDpiAwareness() {
|
||||
void *userDLL = SDL_LoadObject("USER32.DLL");
|
||||
if (userDLL) {
|
||||
SetProcessDPIAware = (BOOL(WINAPI *)(void))SDL_LoadFunction(userDLL, "SetProcessDPIAware");
|
||||
|
Loading…
x
Reference in New Issue
Block a user