mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
this might fix the black screen in 8 bit X
This commit is contained in:
parent
ddd7989b85
commit
d835b79352
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue