From: Paul Gofman <pgofman(a)codeweavers.com> --- dlls/win32u/window.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/dlls/win32u/window.c b/dlls/win32u/window.c index ba931163272..94a2a638a2d 100644 --- a/dlls/win32u/window.c +++ b/dlls/win32u/window.c @@ -2214,11 +2214,7 @@ static BOOL expose_window_surface( HWND hwnd, UINT flags, const RECT *rect, UINT rects = win->rects; release_win_ptr( win ); - if (rect) - { - window_rect = map_dpi_rect( *rect, dpi, get_dpi_for_window( hwnd ) ); - InflateRect( &window_rect, 1, 1 ); /* compensate rounding errors */ - } + if (rect) window_rect = map_dpi_rect( *rect, dpi, get_dpi_for_window( hwnd ) ); if (!surface || surface == &dummy_surface) { -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/7780