mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-31 04:20:34 +00:00
- Fixed: The intensity scalar for building DesaturateColormaps was off by one.
SVN r2380 (trunk)
This commit is contained in:
parent
141cf825cf
commit
e379d24388
1 changed files with 2 additions and 2 deletions
|
@ -483,7 +483,7 @@ void InitPalette ()
|
|||
{
|
||||
int intensity = (GPalette.BaseColors[c].r * 77 +
|
||||
GPalette.BaseColors[c].g * 143 +
|
||||
GPalette.BaseColors[c].b * 37) / 255;
|
||||
GPalette.BaseColors[c].b * 37) / 256;
|
||||
|
||||
int r = (GPalette.BaseColors[c].r * (31-m) + intensity *m) / 31;
|
||||
int g = (GPalette.BaseColors[c].g * (31-m) + intensity *m) / 31;
|
||||
|
|
Loading…
Reference in a new issue