this might fix the black screen in 8 bit X

This commit is contained in:
Bill Currie 2001-10-29 22:29:42 +00:00
parent ddd7989b85
commit d835b79352

View file

@ -575,9 +575,9 @@ VID_SetPalette (unsigned char *palette)
for (i = 0; i < 256; i++) {
colors[i].pixel = i;
colors[i].flags = DoRed | DoGreen | DoBlue;
colors[i].red = gammatable[(byte) palette[(i * 3)]];
colors[i].green = gammatable[(byte) palette[(i * 3) + 1]];
colors[i].blue = gammatable[(byte) palette[(i * 3) + 2]];
colors[i].red = gammatable[(byte) palette[(i * 3)]] << 8;
colors[i].green = gammatable[(byte) palette[(i * 3) + 1]] << 8;
colors[i].blue = gammatable[(byte) palette[(i * 3) + 2]] << 8;
}
XStoreColors (x_disp, x_cmap, colors, 256);
}