1
0
mirror of https://github.com/blawar/GLideN64.git synced 2024-07-02 09:03:37 +00:00

Correct _YUVtoRGBA

This commit is contained in:
Sergey Lipskiy 2018-08-24 15:29:41 +07:00
parent ec898f4178
commit 51490b9de0

View File

@ -390,9 +390,9 @@ u16 _YUVtoRGBA(u8 y, u8 u, u8 v)
g *= 0.125f;
b *= 0.125f;
//clipping the result
if (r > 32) r = 32;
if (g > 32) g = 32;
if (b > 32) b = 32;
if (r > 31) r = 31;
if (g > 31) g = 31;
if (b > 31) b = 31;
if (r < 0) r = 0;
if (g < 0) g = 0;
if (b < 0) b = 0;