Fix typo s/i/index/ in LoadPalette for depth 16.

Reported by:	Haihao Xiang <haihao.xiang@intel.com>
This commit is contained in:
Eric Anholt 2007-05-02 15:40:49 -07:00
parent f850d4727a
commit 34f362d099
1 changed files with 1 additions and 1 deletions

View File

@ -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;