Skip to content

Commit

Permalink
Small fix for Visual Studio about DPI awareness code.
Browse files Browse the repository at this point in the history
  • Loading branch information
Unarelith committed Mar 1, 2020
1 parent 79efd51 commit a9da012
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ typedef enum PROCESS_DPI_AWARENESS {
PROCESS_PER_MONITOR_DPI_AWARE = 2
} PROCESS_DPI_AWARENESS;

BOOL(WINAPI *SetProcessDPIAware)(void); // Vista and later
HRESULT(WINAPI *SetProcessDpiAwareness)(PROCESS_DPI_AWARENESS dpiAwareness); // Windows 8.1 and later

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");
if (userDLL) {
SetProcessDPIAware = (BOOL(WINAPI *)(void))SDL_LoadFunction(userDLL, "SetProcessDPIAware");
Expand Down

0 comments on commit a9da012

Please sign in to comment.