From aef0d18d97e9d3bab72481ecef0eacdc494e31df Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 4 Jan 2005 12:11:09 +0000 Subject: [PATCH] Use the DC origin to map coordinates in ExcludeUpdateRgn instead of calling an internal DCE function. --- dlls/user/painting.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dlls/user/painting.c b/dlls/user/painting.c index 3aeee06227c..f7b4982797a 100644 --- a/dlls/user/painting.c +++ b/dlls/user/painting.c @@ -560,9 +560,12 @@ INT WINAPI ExcludeUpdateRgn( HDC hdc, HWND hwnd ) if (ret != ERROR) { - /* do ugly coordinate translations in dce.c */ + POINT pt; - ret = DCE_ExcludeRgn( hdc, hwnd, update_rgn ); + GetDCOrgEx( hdc, &pt ); + MapWindowPoints( 0, hwnd, &pt, 1 ); + OffsetRgn( update_rgn, -pt.x, -pt.y ); + ret = ExtSelectClipRgn( hdc, update_rgn, RGN_DIFF ); DeleteObject( update_rgn ); } return ret; -- 2.11.4.GIT