diff options
author | Keith Packard <keithp@keithp.com> | 2009-04-30 15:30:05 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2009-04-30 15:30:05 -0700 |
commit | 8232177a005127a0001af4b14c3beb766958ef11 (patch) | |
tree | 45ca15347311cf0e4a04121f8b726d227a9b8411 /src/i830_cursor.c | |
parent | 417f3784b7fae8de3559c7607a2de60661a6a448 (diff) |
Allow cursors to roam past 2048x2048 limit.
There's no reason to clip cursor positions to an artificial limit; the
hardware cursor limits always mirror the hardware display limits.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/i830_cursor.c')
-rw-r--r-- | src/i830_cursor.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/i830_cursor.c b/src/i830_cursor.c index 33b1bd9a..a6aba413 100644 --- a/src/i830_cursor.c +++ b/src/i830_cursor.c @@ -147,15 +147,15 @@ i830_crtc_set_cursor_position (xf86CrtcPtr crtc, int x, int y) temp = 0; if (x < 0) { - temp |= (CURSOR_POS_SIGN << CURSOR_X_SHIFT); + temp |= CURSOR_POS_SIGN << CURSOR_X_SHIFT; x = -x; } if (y < 0) { - temp |= (CURSOR_POS_SIGN << CURSOR_Y_SHIFT); + temp |= CURSOR_POS_SIGN << CURSOR_Y_SHIFT; y = -y; } - temp |= ((x & CURSOR_POS_MASK) << CURSOR_X_SHIFT); - temp |= ((y & CURSOR_POS_MASK) << CURSOR_Y_SHIFT); + temp |= x << CURSOR_X_SHIFT; + temp |= y << CURSOR_Y_SHIFT; switch (intel_crtc->pipe) { case 0: |