1
0
Fork 0
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:
Nils Wallménius 2007-08-19 21:33:57 +00:00
parent bc6c62bebf
commit c023cb8783

View file

@ -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