mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-18 23:57:32 +00:00
Fix cycling of speech and subtitle options via Ctrl t.
svn-id: r31787
This commit is contained in:
parent
21dc872873
commit
5e52a8e533
@ -928,6 +928,7 @@ void SubtitleSettingsDialog::handleKeyDown(Common::KeyState state) {
|
||||
void SubtitleSettingsDialog::open() {
|
||||
cycleValue();
|
||||
InfoDialog::open();
|
||||
setResult(_value);
|
||||
}
|
||||
|
||||
void SubtitleSettingsDialog::cycleValue() {
|
||||
@ -937,11 +938,12 @@ void SubtitleSettingsDialog::cycleValue() {
|
||||
"Subtitles Only"
|
||||
};
|
||||
|
||||
_value = (_value + 1) % 3;
|
||||
_value += 1;
|
||||
if (_value > 2)
|
||||
_value = 0;
|
||||
|
||||
setInfoText(subtitleDesc[_value]);
|
||||
|
||||
setResult(_value);
|
||||
_timer = getMillis() + 1500;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user