Use the DC origin to map coordinates in ExcludeUpdateRgn instead of

calling an internal DCE function.
This commit is contained in:
Alexandre Julliard 2005-01-04 12:11:09 +00:00
parent 1fd6264244
commit aef0d18d97
1 changed files with 5 additions and 2 deletions

View File

@ -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;