xf86-video-ati: Branch 'master'

Alex Deucher agd5f at kemper.freedesktop.org
Mon Apr 27 00:36:16 PDT 2009


 src/radeon_cursor.c |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit 93626b1277f57bd559cf71b263221209b02e0046
Author: Alex Deucher <alexdeucher at gmail.com>
Date:   Mon Apr 27 03:35:24 2009 -0400

    AVIVO: make sure cursor width isn't negative

diff --git a/src/radeon_cursor.c b/src/radeon_cursor.c
index 980b81f..6fc681a 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);


More information about the xorg-commit mailing list