mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-02 11:51:25 +00:00
Correct the HICTINT_GRAYSCALE calculation for hightile.
git-svn-id: https://svn.eduke32.com/eduke32@5148 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
be29f098ab
commit
3a26e5b241
1 changed files with 2 additions and 2 deletions
|
@ -1136,9 +1136,9 @@ int32_t gloadtile_hi(int32_t dapic,int32_t dapalnum, int32_t facen, hicreplctyp
|
||||||
|
|
||||||
if (effect & HICTINT_GRAYSCALE)
|
if (effect & HICTINT_GRAYSCALE)
|
||||||
{
|
{
|
||||||
tcol.g = tcol.r = tcol.b = (uint8_t) ((tcol.r * GRAYSCALE_COEFF_RED) +
|
tcol.g = tcol.r = tcol.b = (uint8_t) ((tcol.b * GRAYSCALE_COEFF_RED) +
|
||||||
(tcol.g * GRAYSCALE_COEFF_GREEN) +
|
(tcol.g * GRAYSCALE_COEFF_GREEN) +
|
||||||
(tcol.b * GRAYSCALE_COEFF_BLUE));
|
(tcol.r * GRAYSCALE_COEFF_BLUE));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (effect & HICTINT_INVERT)
|
if (effect & HICTINT_INVERT)
|
||||||
|
|
Loading…
Reference in a new issue