1
0
Fork 0
forked from len0rd/rockbox

FS#7994 - Rename talk.c API, make talk_disable() affect all talking (not just menus), hopefully save some space.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15206 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Steve Bavin 2007-10-19 15:31:42 +00:00
parent 877ea486ba
commit 32a9575130
22 changed files with 161 additions and 186 deletions

View file

@ -74,7 +74,7 @@ static unsigned short *kbd_setupkeys(int page, int* len)
/* helper function to spell a char if voice UI is enabled */
static void kbd_spellchar(char c)
{
if (talk_menus_enabled()) /* voice UI? */
if (global_settings.talk_menu) /* voice UI? */
{
unsigned char tmp[5];
/* store char to pass to talk_spell */
@ -90,7 +90,7 @@ static void kbd_spellchar(char c)
static void say_edit(void)
{
if (talk_menus_enabled())
if (global_settings.talk_menu)
talk_id(VOICE_EDIT, false);
}
@ -112,7 +112,7 @@ int kbd_input(char* text, int buflen)
editpos = utf8length(text);
if (talk_menus_enabled()) /* voice UI? */
if (global_settings.talk_menu) /* voice UI? */
talk_spell(text, true); /* spell initial text */
while (!done)
@ -284,7 +284,7 @@ int kbd_input(char* text, int buflen)
editpos++;
}
}
if (talk_menus_enabled()) /* voice UI? */
if (global_settings.talk_menu) /* voice UI? */
talk_spell(text, false); /* speak revised text */
break;