forked from len0rd/rockbox
Revert previous 'fix' and implement the correct one, thanks markun! :-)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14396 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
bc6c62bebf
commit
c023cb8783
1 changed files with 4 additions and 1 deletions
|
@ -378,10 +378,13 @@ int kbd_input(char* text, int buflen)
|
|||
}
|
||||
|
||||
sc->setfont(pm->curfont);
|
||||
pm->font_w = 0; /* reset font width */
|
||||
/* find max width of keyboard glyphs */
|
||||
for (i = 0; i < pm->nchars; i++)
|
||||
{
|
||||
pm->font_w = font_get_width(pm->font, pm->kbd_buf[i]);
|
||||
w = font_get_width(pm->font, pm->kbd_buf[i]);
|
||||
if ( w > pm->font_w )
|
||||
pm->font_w = w;
|
||||
}
|
||||
|
||||
/* Since we're going to be adding spaces, make sure that we check
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue