7 Jan
2025
7 Jan
'25
8:42 a.m.
On Tue Jan 7 08:36:35 2025 +0000, Rémi Bernon wrote:
Actually, you need to either use `NtUserGetWinMonitorDpi` here, or remove `NTGDI_RGN_MONITOR_DPI` from the `NtGdiGetRandomRgn` call. The latter being possibly better as it will avoid any rounding and the eventually related issues. I missed that, but doesn't the `NtUserGetDpiForWindow( hwnd ) != NtUserGetWinMonitorDpi( hwnd, MDT_RAW_DPI )` check in `needs_offscreen_rendering` already prevent this from being an issue?
Regardless, I'll remove the `NTGDI_RGN_MONITOR_DPI` flag, in case the function is used somewhere else in the future. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/7106#note_91560