mirror of https://github.com/AxioDL/metaforce.git
CGameOptions: Make TuneScreenBrightness() a const member function
This member function doesn't modify internal class state.
This commit is contained in:
parent
d16e758f07
commit
e7ef1e0b5e
|
@ -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 */
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue