Use the DC origin to map coordinates in ExcludeUpdateRgn instead of
calling an internal DCE function.
This commit is contained in:
parent
1fd6264244
commit
aef0d18d97
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue