Commit aef0d18d authored by Alexandre Julliard's avatar Alexandre Julliard

Use the DC origin to map coordinates in ExcludeUpdateRgn instead of

calling an internal DCE function.
parent 1fd62642
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment