[PATCH] winex11: Make GetCursorPos respect clipping and virtual screen size.
Alexandre Julliard
julliard at winehq.org
Wed May 18 03:57:24 CDT 2011
Lauri Kenttä <lauri.kentta at 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 at winehq.org
More information about the wine-devel
mailing list