CGameOptions: Make TuneScreenBrightness() a const member function

This member function doesn't modify internal class state.
This commit is contained in:
Lioncash 2020-04-16 19:42:18 -04:00
parent d16e758f07
commit e7ef1e0b5e
2 changed files with 2 additions and 2 deletions

View File

@ -266,7 +266,7 @@ CGameOptions::CGameOptions()
InitSoundMode();
}
float CGameOptions::TuneScreenBrightness() { return (0.375f * 1.f) + (float(x48_screenBrightness) * 0.25f); }
float CGameOptions::TuneScreenBrightness() const { return (0.375f * 1.f) + (float(x48_screenBrightness) * 0.25f); }
void CGameOptions::InitSoundMode() { /* If system is mono, force x44 to mono, otherwise honor user preference */
}

View File

@ -134,7 +134,7 @@ public:
void EnsureSettings();
void PutTo(CBitStreamWriter& writer) const;
float TuneScreenBrightness();
float TuneScreenBrightness() const;
void SetScreenBrightness(s32, bool);
s32 GetScreenBrightness() const { return x48_screenBrightness; }
void ApplyGamma();