diff options
author | Alex Deucher <alexdeucher@gmail.com> | 2009-04-27 03:35:24 -0400 |
---|---|---|
committer | Alex Deucher <alexdeucher@gmail.com> | 2009-05-08 12:07:49 -0400 |
commit | f2aaa70871f87f39d0c08b4652840ec4b3dc74a4 (patch) | |
tree | 85b8e12cce60f3237182c6bb5188dfb1498e7e8f | |
parent | db375c70a00865976ddb3b32bb4b25113735bf1e (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 30bee508..bc9cf191 100644 --- a/src/radeon_cursor.c +++ b/src/radeon_cursor.c @@ -240,6 +240,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); |