From 34f362d099d255f8f0bb34e9de30f953ee770163 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Wed, 2 May 2007 15:40:49 -0700 Subject: [PATCH] Fix typo s/i/index/ in LoadPalette for depth 16. Reported by: Haihao Xiang --- src/i830_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/i830_driver.c b/src/i830_driver.c index 43f4e04a..1d8b7f8f 100644 --- a/src/i830_driver.c +++ b/src/i830_driver.c @@ -647,7 +647,7 @@ I830LoadPalette(ScrnInfoPtr pScrn, int numColors, int *indices, 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;