diff options
author | marha <marha@users.sourceforge.net> | 2010-06-23 06:38:04 +0000 |
---|---|---|
committer | marha <marha@users.sourceforge.net> | 2010-06-23 06:38:04 +0000 |
commit | c356d5298f18cd103ef7caad015d98d2022044ac (patch) | |
tree | 6eb4fe5cf11588223e1d1da94d5ed41ca5e6f96c /xorg-server/hw/xfree86 | |
parent | 5bb359288aac7b23042dc168608f2ced46c851da (diff) | |
download | vcxsrv-c356d5298f18cd103ef7caad015d98d2022044ac.tar.gz vcxsrv-c356d5298f18cd103ef7caad015d98d2022044ac.tar.bz2 vcxsrv-c356d5298f18cd103ef7caad015d98d2022044ac.zip |
xserver git update 23/6/2010
Diffstat (limited to 'xorg-server/hw/xfree86')
-rw-r--r-- | xorg-server/hw/xfree86/modes/xf86Cursors.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/xorg-server/hw/xfree86/modes/xf86Cursors.c b/xorg-server/hw/xfree86/modes/xf86Cursors.c index 4cf6147bb..090f29c2f 100644 --- a/xorg-server/hw/xfree86/modes/xf86Cursors.c +++ b/xorg-server/hw/xfree86/modes/xf86Cursors.c @@ -325,10 +325,13 @@ xf86_crtc_set_cursor_position (xf86CrtcPtr crtc, int x, int y) xf86CursorScreenKey);
struct pict_f_vector v;
- v.v[0] = x + ScreenPriv->HotX; v.v[1] = y + ScreenPriv->HotY; v.v[2] = 1;
+ v.v[0] = (x + ScreenPriv->HotX) + 0.5;
+ v.v[1] = (y + ScreenPriv->HotY) + 0.5;
+ v.v[2] = 1;
pixman_f_transform_point (&crtc->f_framebuffer_to_crtc, &v);
- x = floor (v.v[0] + 0.5);
- y = floor (v.v[1] + 0.5);
+ /* cursor will have 0.5 added to it already so floor is sufficent */
+ x = floor (v.v[0]);
+ y = floor (v.v[1]);
/*
* Transform position of cursor upper left corner
*/
|