1
0
Fork 0
forked from len0rd/rockbox

Slight code policing.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15065 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Jens Arnold 2007-10-10 06:02:08 +00:00
parent 100d343963
commit 064de4ce4d
2 changed files with 16 additions and 14 deletions

View file

@ -76,14 +76,15 @@ static void kbd_spellchar(char c)
{
if (talk_menus_enabled()) /* voice UI? */
{
unsigned char tmp[5];
/* store char to pass to talk_spell */
unsigned char* utf8 = utf8encode(c, tmp);
*utf8 = 0;
unsigned char tmp[5];
/* store char to pass to talk_spell */
unsigned char* utf8 = utf8encode(c, tmp);
*utf8 = 0;
if(c == ' ')
talk_id(VOICE_BLANK, false);
else talk_spell(tmp, false);
if(c == ' ')
talk_id(VOICE_BLANK, false);
else
talk_spell(tmp, false);
}
}

View file

@ -192,14 +192,15 @@ static void kbd_spellchar(unsigned short c)
{
if (talk_menus_enabled()) /* voice UI? */
{
unsigned char tmp[5];
/* store char to pass to talk_spell */
unsigned char* utf8 = utf8encode(c, tmp);
*utf8 = 0;
unsigned char tmp[5];
/* store char to pass to talk_spell */
unsigned char* utf8 = utf8encode(c, tmp);
*utf8 = 0;
if(c == ' ')
talk_id(VOICE_BLANK, false);
else talk_spell(tmp, false);
if(c == ' ')
talk_id(VOICE_BLANK, false);
else
talk_spell(tmp, false);
}
}