QuickNES: Slightly tweak palette rounding computation

Fixes #3668
This commit is contained in:
nattthebear 2023-05-26 07:01:56 -04:00
parent 8a94204a2f
commit 3d5b068c2f
1 changed files with 3 additions and 3 deletions

View File

@ -88,9 +88,9 @@ namespace BizHawk.Emulation.Cores.Consoles.Nintendo.QuickNES
g = Math.Min(1.0f, Math.Max(0.0f, g));
b = Math.Min(1.0f, Math.Max(0.0f, b));
outp[0] = (byte)(r * 255);
outp[1] = (byte)(g * 255);
outp[2] = (byte)(b * 255);
outp[0] = (byte)Math.Round(r * 255);
outp[1] = (byte)Math.Round(g * 255);
outp[2] = (byte)Math.Round(b * 255);
}
}
}