Don't use floats

This commit is contained in:
Anonymous Maarten 2024-12-29 21:14:02 +00:00 committed by GitHub
parent 8caa0653a8
commit dd3fe4f3c9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -121,9 +121,9 @@ void LegoBackgroundColor::SetLightColor(float p_r, float p_g, float p_b)
{ {
if (!VideoManager()->GetVideoParam().Flags().GetF2bit0()) { if (!VideoManager()->GetVideoParam().Flags().GetF2bit0()) {
// TODO: Computed constants based on what? // TODO: Computed constants based on what?
p_r *= 1.f / 0.23f; p_r *= 1. / 0.23;
p_g *= 1.f / 0.63f; p_g *= 1. / 0.63;
p_b *= 1.f / 0.85f; p_b *= 1. / 0.85;
if (p_r > 1.0) { if (p_r > 1.0) {
p_r = 1.0; p_r = 1.0;