mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-11 21:03:05 +08:00
Merge pull request #2409 from RaiKoHoff/grepWin_Integration
Workaround for DPI_AWARENESS Font Size problem on DPI_CHANGE
This commit is contained in:
commit
4285ed97e5
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user