win32u: Use NtUserCallHwndParam for MirrorRgn implementation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Huw Davies <huw@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6f1e48f424
commit
dcca04606e
|
@ -695,7 +695,7 @@ HRGN WINAPI CreatePolygonRgn( const POINT *points, INT count, INT mode )
|
|||
*/
|
||||
BOOL WINAPI MirrorRgn( HWND hwnd, HRGN hrgn )
|
||||
{
|
||||
return NtUserCallTwoParam( HandleToUlong(hwnd), HandleToUlong(hrgn), NtUserMirrorRgn );
|
||||
return NtUserCallHwndParam( hwnd, HandleToUlong(hrgn), NtUserMirrorRgn );
|
||||
}
|
||||
|
||||
/***********************************************************************
|
||||
|
|
|
@ -4752,8 +4752,6 @@ ULONG_PTR WINAPI NtUserCallTwoParam( ULONG_PTR arg1, ULONG_PTR arg2, ULONG code
|
|||
return get_monitor_info( UlongToHandle(arg1), (MONITORINFO *)arg2 );
|
||||
case NtUserGetSystemMetricsForDpi:
|
||||
return get_system_metrics_for_dpi( arg1, arg2 );
|
||||
case NtUserMirrorRgn:
|
||||
return mirror_window_region( UlongToHandle(arg1), UlongToHandle(arg2) );
|
||||
case NtUserMonitorFromRect:
|
||||
return HandleToUlong( monitor_from_rect( (const RECT *)arg1, arg2, get_thread_dpi() ));
|
||||
case NtUserReplyMessage:
|
||||
|
|
|
@ -5048,6 +5048,8 @@ ULONG_PTR WINAPI NtUserCallHwndParam( HWND hwnd, DWORD_PTR param, DWORD code )
|
|||
return is_child( hwnd, UlongToHandle(param) );
|
||||
case NtUserKillSystemTimer:
|
||||
return kill_system_timer( hwnd, param );
|
||||
case NtUserMirrorRgn:
|
||||
return mirror_window_region( hwnd, UlongToHandle(param) );
|
||||
case NtUserMonitorFromWindow:
|
||||
return HandleToUlong( monitor_from_window( hwnd, param, NtUserMonitorFromWindow ));
|
||||
case NtUserScreenToClient:
|
||||
|
|
|
@ -166,7 +166,6 @@ enum
|
|||
{
|
||||
NtUserGetMonitorInfo,
|
||||
NtUserGetSystemMetricsForDpi,
|
||||
NtUserMirrorRgn,
|
||||
NtUserMonitorFromRect,
|
||||
NtUserReplyMessage,
|
||||
NtUserSetIconParam,
|
||||
|
@ -213,6 +212,7 @@ enum
|
|||
NtUserGetWindowWord,
|
||||
NtUserIsChild,
|
||||
NtUserKillSystemTimer,
|
||||
NtUserMirrorRgn,
|
||||
NtUserMonitorFromWindow,
|
||||
NtUserScreenToClient,
|
||||
NtUserSetCaptureWindow,
|
||||
|
|
Loading…
Reference in New Issue