diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2009-04-27 03:35:24 -0400 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2009-04-27 03:35:24 -0400 |
commit | 93626b1277f57bd559cf71b263221209b02e0046 (patch) | |
tree | 8118c22765a3b32da4e5d21bc0248782ebe20959 | |
parent | 32af0f097bccc4499d67e969d46ba35e7487c5e2 (diff) |
AVIVO: make sure cursor width isn't negative
-rw-r--r-- | src/radeon_cursor.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/radeon_cursor.c b/src/radeon_cursor.c index 980b81f4..6fc681a9 100644 --- a/src/radeon_cursor.c +++ b/src/radeon_cursor.c @@ -232,6 +232,8 @@ radeon_crtc_set_cursor_position (xf86CrtcPtr crtc, int x, int y) if (!(cursor_end & 0x7f)) w--; } + if (w <= 0) + w = 1; } avivo_lock_cursor(crtc, TRUE); |