mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +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,12 +483,12 @@ void InitPalette ()
|
||||||
{
|
{
|
||||||
int intensity = (GPalette.BaseColors[c].r * 77 +
|
int intensity = (GPalette.BaseColors[c].r * 77 +
|
||||||
GPalette.BaseColors[c].g * 143 +
|
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 r = (GPalette.BaseColors[c].r * (31-m) + intensity *m) / 31;
|
||||||
int g = (GPalette.BaseColors[c].g * (31-m) + intensity *m) / 31;
|
int g = (GPalette.BaseColors[c].g * (31-m) + intensity *m) / 31;
|
||||||
int b = (GPalette.BaseColors[c].b * (31-m) + intensity *m) / 31;
|
int b = (GPalette.BaseColors[c].b * (31-m) + intensity *m) / 31;
|
||||||
shade[c] = ColorMatcher.Pick (r, g, b);
|
shade[c] = ColorMatcher.Pick(r, g, b);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue