From 24d9f59c784ab07241b51851a2683ea1c90e89e2 Mon Sep 17 00:00:00 2001 From: Steve Bavin Date: Mon, 11 Jun 2007 08:28:38 +0000 Subject: When recording, disable voice menus without actually modifying user settings. Patch FS#7272, fixes bug FS #6163 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13615 a1c6a512-1295-4272-9138-f99709370657 --- apps/recorder/keyboard.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'apps/recorder/keyboard.c') diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c index 5c97f2bad6..3ce0208b7e 100644 --- a/apps/recorder/keyboard.c +++ b/apps/recorder/keyboard.c @@ -190,7 +190,7 @@ static void kbd_spellchar(unsigned short c) { static char spell_char[2] = "\0\0"; /* store char to pass to talk_spell */ - if (global_settings.talk_menu && c < 128) /* voice UI? */ + if (talk_menus_enabled() && c < 128) /* voice UI? */ { spell_char[0] = (char)c; talk_spell(spell_char, false); @@ -510,7 +510,7 @@ int kbd_input(char* text, int buflen) /* Initial edit position is after last character */ editpos = utf8length(text); - if (global_settings.talk_menu) /* voice UI? */ + if (talk_menus_enabled()) /* voice UI? */ talk_spell(text, true); /* spell initial text */ action_signalscreenchange(); @@ -1087,7 +1087,7 @@ int kbd_input(char* text, int buflen) kbd_inschar(text, buflen, &editpos, ch); } - if (global_settings.talk_menu) /* voice UI? */ + if (talk_menus_enabled()) /* voice UI? */ talk_spell(text, false); /* speak revised text */ @@ -1116,7 +1116,7 @@ int kbd_input(char* text, int buflen) kbd_inschar(text, buflen, &editpos, ch); } - if (global_settings.talk_menu) /* voice UI? */ + if (talk_menus_enabled()) /* voice UI? */ talk_spell(text, false); /* speak revised text */ break; @@ -1167,7 +1167,7 @@ int kbd_input(char* text, int buflen) param[l].hangul = false; kbd_inschar(text, buflen, &editpos, morse_alphabets[j]); - if (global_settings.talk_menu) /* voice UI? */ + if (talk_menus_enabled()) /* voice UI? */ talk_spell(text, false); /* speak revised text */ } #endif /* KBD_MORSE_INPUT */ -- cgit v1.2.3