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:
Jacek Caban 2022-04-13 15:06:51 +02:00 committed by Alexandre Julliard
parent 6f1e48f424
commit dcca04606e
4 changed files with 4 additions and 4 deletions

View File

@ -695,7 +695,7 @@ HRGN WINAPI CreatePolygonRgn( const POINT *points, INT count, INT mode )
*/ */
BOOL WINAPI MirrorRgn( HWND hwnd, HRGN hrgn ) BOOL WINAPI MirrorRgn( HWND hwnd, HRGN hrgn )
{ {
return NtUserCallTwoParam( HandleToUlong(hwnd), HandleToUlong(hrgn), NtUserMirrorRgn ); return NtUserCallHwndParam( hwnd, HandleToUlong(hrgn), NtUserMirrorRgn );
} }
/*********************************************************************** /***********************************************************************

View File

@ -4752,8 +4752,6 @@ ULONG_PTR WINAPI NtUserCallTwoParam( ULONG_PTR arg1, ULONG_PTR arg2, ULONG code
return get_monitor_info( UlongToHandle(arg1), (MONITORINFO *)arg2 ); return get_monitor_info( UlongToHandle(arg1), (MONITORINFO *)arg2 );
case NtUserGetSystemMetricsForDpi: case NtUserGetSystemMetricsForDpi:
return get_system_metrics_for_dpi( arg1, arg2 ); return get_system_metrics_for_dpi( arg1, arg2 );
case NtUserMirrorRgn:
return mirror_window_region( UlongToHandle(arg1), UlongToHandle(arg2) );
case NtUserMonitorFromRect: case NtUserMonitorFromRect:
return HandleToUlong( monitor_from_rect( (const RECT *)arg1, arg2, get_thread_dpi() )); return HandleToUlong( monitor_from_rect( (const RECT *)arg1, arg2, get_thread_dpi() ));
case NtUserReplyMessage: case NtUserReplyMessage:

View File

@ -5048,6 +5048,8 @@ ULONG_PTR WINAPI NtUserCallHwndParam( HWND hwnd, DWORD_PTR param, DWORD code )
return is_child( hwnd, UlongToHandle(param) ); return is_child( hwnd, UlongToHandle(param) );
case NtUserKillSystemTimer: case NtUserKillSystemTimer:
return kill_system_timer( hwnd, param ); return kill_system_timer( hwnd, param );
case NtUserMirrorRgn:
return mirror_window_region( hwnd, UlongToHandle(param) );
case NtUserMonitorFromWindow: case NtUserMonitorFromWindow:
return HandleToUlong( monitor_from_window( hwnd, param, NtUserMonitorFromWindow )); return HandleToUlong( monitor_from_window( hwnd, param, NtUserMonitorFromWindow ));
case NtUserScreenToClient: case NtUserScreenToClient:

View File

@ -166,7 +166,6 @@ enum
{ {
NtUserGetMonitorInfo, NtUserGetMonitorInfo,
NtUserGetSystemMetricsForDpi, NtUserGetSystemMetricsForDpi,
NtUserMirrorRgn,
NtUserMonitorFromRect, NtUserMonitorFromRect,
NtUserReplyMessage, NtUserReplyMessage,
NtUserSetIconParam, NtUserSetIconParam,
@ -213,6 +212,7 @@ enum
NtUserGetWindowWord, NtUserGetWindowWord,
NtUserIsChild, NtUserIsChild,
NtUserKillSystemTimer, NtUserKillSystemTimer,
NtUserMirrorRgn,
NtUserMonitorFromWindow, NtUserMonitorFromWindow,
NtUserScreenToClient, NtUserScreenToClient,
NtUserSetCaptureWindow, NtUserSetCaptureWindow,