Merge pull request #2409 from RaiKoHoff/grepWin_Integration

Workaround for DPI_AWARENESS Font Size problem on DPI_CHANGE
This commit is contained in:
Rainer Kottenhoff 2020-06-09 18:21:39 +02:00 committed by GitHub
commit 4285ed97e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -108,7 +108,9 @@ inline T DLLFunctionEx(LPCWSTR lpDllName, LPCSTR lpProcName) noexcept {
}
inline UINT DpiForWindow(WindowID wid) noexcept {
return GetWindowDPI(HwndFromWindowID(wid)).y;
//~return GetWindowDPI(HwndFromWindowID(wid)).y;
// retrieving the logPixelsY per window may double the Font Size calculation
return USER_DEFAULT_SCREEN_DPI; // DPI_AWARENESS set by manifest
}
HCURSOR LoadReverseArrowCursor(DPI_T dpi) noexcept;