mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 23:32:09 +00:00
-3dfx brightness changed int to float
This commit is contained in:
parent
903482c923
commit
3f47a8d0a7
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ TDFX_BrightenPalette (unsigned char *palette)
|
|||
green = (float)pal[1];
|
||||
blue = (float)pal[2];
|
||||
maxnum = max(red,max(green,blue));
|
||||
somenum = (bound(0.0,(maxnum * tdfx_brighten->int_val),255.0) / maxnum);
|
||||
somenum = (bound(0.0,(maxnum * tdfx_brighten->value),255.0) / maxnum);
|
||||
pal[0] = (int)(somenum * red);
|
||||
pal[1] = (int)(somenum * green);
|
||||
pal[2] = (int)(somenum * blue);
|
||||
|
|
Loading…
Reference in a new issue