Skip to content

Commit

Permalink
Aerexplorer 1.6.3 pt 2: Restore Windhawk 1.4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
aubymori committed Aug 17, 2024
1 parent 2b543b3 commit 97e6120
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion mods/aerexplorer.wh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// @author aubymori
// @github https://github.com/aubymori
// @include *
// @compilerOptions -lgdi32 -lcomctl32 -lole32 -loleaut32 -luxtheme -ldwmapi
// @compilerOptions -lgdi32 -lcomctl32 -lole32 -loleaut32 -luxtheme -ldwmapi -DWINVER=0x0A00
// ==/WindhawkMod==

// ==WindhawkModReadme==
Expand Down Expand Up @@ -806,6 +806,11 @@ LPCDRIVEGROUPI18N GetCurrentDriveLocale(void)
return en;
}

/* Only available in Windows 10, version 1607 and later. */
WINUSERAPI UINT WINAPI GetDpiForSystem(void);
WINUSERAPI UINT WINAPI GetDpiForWindow(HWND);
WINUSERAPI int WINAPI GetSystemMetricsForDpi(int, UINT);

#define ScaleForDPI(n) MulDiv(n, GetDpiForSystem(), 96)
#define IsHighDPI() (GetDpiForSystem() >= 120)

Expand Down

0 comments on commit 97e6120

Please sign in to comment.