mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-03 15:42:32 +00:00
value already bool, no need to cast it
This commit is contained in:
parent
70a8391d90
commit
028bbbeb0b
@ -222,13 +222,13 @@ void GameSettingsScreen::CreateViews() {
|
||||
audioSettings->Add(new ItemHeader(ms->T("Audio")));
|
||||
|
||||
PopupSliderChoice *sfxVol = audioSettings->Add(new PopupSliderChoice(&g_Config.iSFXVolume, 0, MAX_CONFIG_VOLUME, a->T("SFX volume"), screenManager()));
|
||||
sfxVol->SetEnabledPtr((bool *)&g_Config.bEnableSound);
|
||||
sfxVol->SetEnabledPtr(&g_Config.bEnableSound);
|
||||
PopupSliderChoice *bgmVol = audioSettings->Add(new PopupSliderChoice(&g_Config.iBGMVolume, 0, MAX_CONFIG_VOLUME, a->T("BGM volume"), screenManager()));
|
||||
bgmVol->SetEnabledPtr((bool *)&g_Config.bEnableSound);
|
||||
bgmVol->SetEnabledPtr(&g_Config.bEnableSound);
|
||||
|
||||
audioSettings->Add(new CheckBox(&g_Config.bEnableSound, a->T("Enable Sound")));
|
||||
CheckBox *lowAudio = audioSettings->Add(new CheckBox(&g_Config.bLowLatencyAudio, a->T("Low latency audio")));
|
||||
lowAudio->SetEnabledPtr((bool *)&g_Config.bEnableSound);
|
||||
lowAudio->SetEnabledPtr(&g_Config.bEnableSound);
|
||||
|
||||
// Control
|
||||
ViewGroup *controlsSettingsScroll = new ScrollView(ORIENT_VERTICAL, new LinearLayoutParams(FILL_PARENT, FILL_PARENT));
|
||||
|
Loading…
x
Reference in New Issue
Block a user