Fix typo s/i/index/ in LoadPalette for depth 16.
Reported by: Haihao Xiang <haihao.xiang@intel.com>
This commit is contained in:
parent
f850d4727a
commit
34f362d099
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in New Issue