Re: [PATCH] winex11: Make GetCursorPos respect clipping and virtual screen size.
18 May
2011
18 May
'11
9:57 a.m.
Lauri Kenttä <lauri.kentta(a)gmail.com> writes:
@@ -1245,8 +1245,17 @@ BOOL CDECL X11DRV_GetCursorPos(LPPOINT pos) if (ret) { POINT old = *pos; + RECT clip = clipping_cursor ? clip_rect : virtual_screen_rect; pos->x = winX + virtual_screen_rect.left; pos->y = winY + virtual_screen_rect.top; + if (pos->x < clip.left) + pos->x = clip.left; + if (pos->x >= clip.right) + pos->x = clip.right - 1; + if (pos->y < clip.top) + pos->y = clip.top; + if (pos->y >= clip.bottom) + pos->y = clip.bottom - 1;
That won't really do what you want. Why do you need this? -- Alexandre Julliard julliard(a)winehq.org
5412
Age (days ago)
5412
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard