xf86-video-intel: src/i830_cursor.c

Keith Packard keithp at kemper.freedesktop.org
Thu Apr 30 15:31:22 PDT 2009


 src/i830_cursor.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

New commits:
commit 8232177a005127a0001af4b14c3beb766958ef11
Author: Keith Packard <keithp at keithp.com>
Date:   Thu Apr 30 15:30:05 2009 -0700

    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 at keithp.com>

diff --git a/src/i830_cursor.c b/src/i830_cursor.c
index 33b1bd9..a6aba41 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:


More information about the xorg-commit mailing list