summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2007-11-19 16:35:05 +1000
committerDave Airlie <airlied@redhat.com>2007-11-19 16:35:05 +1000
commite258fbe411d255a1044b61d7ff738aee3fb5b7f4 (patch)
treecd7e9afa83e4d66fe3ee1f63649849122e05a7e2 /src
parentfca47ad083449f4cf9063dd970cdcebea6a7f110 (diff)
makes 2-headed cursor work
Diffstat (limited to 'src')
-rw-r--r--src/radeon_cursor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/radeon_cursor.c b/src/radeon_cursor.c
index 948ecd4e..bf66516b 100644
--- a/src/radeon_cursor.c
+++ b/src/radeon_cursor.c
@@ -202,6 +202,9 @@ radeon_crtc_set_cursor_position (xf86CrtcPtr crtc, int x, int y)
if (y < 0)
y = 0;
+ /* avivo cursor spans the full fb width */
+ x += crtc->x;
+ y += crtc->y;
OUTREG(AVIVO_D1CUR_POSITION + radeon_crtc->crtc_offset, (x << 16) | y);
radeon_crtc->cursor_x = x;
radeon_crtc->cursor_y = y;