xf86-video-intel: src/i830_driver.c

Eric Anholt anholt at kemper.freedesktop.org
Thu May 3 01:44:10 EEST 2007


 src/i830_driver.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

New commits:
diff-tree 34f362d099d255f8f0bb34e9de30f953ee770163 (from f850d4727a2ad55c2116d0788f6684b2a0192d24)
Author: Eric Anholt <eric at anholt.net>
Date:   Wed May 2 15:40:49 2007 -0700

    Fix typo s/i/index/ in LoadPalette for depth 16.
    
    Reported by:	Haihao Xiang <haihao.xiang at intel.com>

diff --git a/src/i830_driver.c b/src/i830_driver.c
index 43f4e04..1d8b7f8 100644
--- a/src/i830_driver.c
+++ b/src/i830_driver.c
@@ -647,7 +647,7 @@ I830LoadPalette(ScrnInfoPtr pScrn, int n
 	 for (i = 0; i < numColors; i++) {
 	    index = indices[i];
 
-	    if (i <= 31) {
+	    if (index <= 31) {
 	       for (j = 0; j < 8; j++) {
 		  lut_r[index * 8 + j] = colors[index].red << 8;
 		  lut_b[index * 8 + j] = colors[index].blue << 8;



More information about the xorg-commit mailing list