From 7e67d0163579a44f104e8f354a929ac9b33e4c21 Mon Sep 17 00:00:00 2001 From: Alex Deucher Date: Fri, 11 Jul 2008 14:30:17 -0400 Subject: Fix cursor with multi-head and rotation --- src/radeon_cursor.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/radeon_cursor.c b/src/radeon_cursor.c index c4472db9..d4804169 100644 --- a/src/radeon_cursor.c +++ b/src/radeon_cursor.c @@ -216,8 +216,10 @@ radeon_crtc_set_cursor_position (xf86CrtcPtr crtc, int x, int y) if (IS_AVIVO_VARIANT) { /* avivo cursor spans the full fb width */ - x += crtc->x; - y += crtc->y; + if (crtc->rotatedData == NULL) { + x += crtc->x; + y += crtc->y; + } avivo_lock_cursor(crtc, TRUE); OUTREG(AVIVO_D1CUR_POSITION + radeon_crtc->crtc_offset, ((xorigin ? 0 : x) << 16) | (yorigin ? 0 : y)); -- cgit v1.2.3