aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-09-23 16:50:39 +1000
committerDave Airlie <airlied@redhat.com>2008-09-23 16:50:39 +1000
commit0130aa0de940a49c086a0fb080e524d55b55ec8b (patch)
tree3e791a95f2f161a6d6e4c2fb90450d398ab473fe
parent3d1825729370a8009f4d7ceae91a16cfd6b7956c (diff)
radeon: fix minor cursor issues
-rw-r--r--linux-core/radeon_cursor.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/linux-core/radeon_cursor.c b/linux-core/radeon_cursor.c
index e71b325d..d352d10f 100644
--- a/linux-core/radeon_cursor.c
+++ b/linux-core/radeon_cursor.c
@@ -196,11 +196,11 @@ int radeon_crtc_cursor_move(struct drm_crtc *crtc,
if (x < 0)
xorigin = -x + 1;
if (y < 0)
- yorigin = -x + 1;
+ yorigin = -y + 1;
if (xorigin >= CURSOR_WIDTH)
xorigin = CURSOR_WIDTH - 1;
- if (yorigin >= CURSOR_WIDTH)
- yorigin = CURSOR_WIDTH - 1;
+ if (yorigin >= CURSOR_HEIGHT)
+ yorigin = CURSOR_HEIGHT - 1;
radeon_lock_cursor(crtc, true);
if (radeon_is_avivo(dev_priv)) {