mirror of
https://gitlab.winehq.org/wine/wine.git
synced 2024-11-19 17:06:04 -07:00
dinput: Assume that clipping the cursor uses the requested rectangle.
This commit is contained in:
parent
3f7c85f7a3
commit
b1e54a5f04
Notes:
Alexandre Julliard
2024-11-18 23:18:33 +01:00
Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/wine/merge_requests/6833
1 changed files with 2 additions and 3 deletions
|
@ -306,8 +306,8 @@ static void warp_check( struct mouse *impl, BOOL force )
|
|||
|
||||
if (force || (impl->need_warp && (now - impl->last_warped > interval)))
|
||||
{
|
||||
RECT rect, new_rect;
|
||||
POINT mapped_center;
|
||||
RECT rect;
|
||||
|
||||
impl->last_warped = now;
|
||||
impl->need_warp = FALSE;
|
||||
|
@ -328,8 +328,7 @@ static void warp_check( struct mouse *impl, BOOL force )
|
|||
rect.right = min( rect.right, rect.left + GetSystemMetrics( SM_CXVIRTUALSCREEN ) - 2 );
|
||||
rect.bottom = min( rect.bottom, rect.top + GetSystemMetrics( SM_CYVIRTUALSCREEN ) - 2 );
|
||||
TRACE("Clipping mouse to %s\n", wine_dbgstr_rect( &rect ));
|
||||
ClipCursor( &rect );
|
||||
impl->clipped = GetClipCursor( &new_rect ) && EqualRect( &rect, &new_rect );
|
||||
impl->clipped = ClipCursor( &rect );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue