diff options
author | Nils Wallménius <nils@rockbox.org> | 2007-08-19 17:10:57 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2007-08-19 17:10:57 +0000 |
commit | f2a1803b2874f617556c38918a4625a9aec714a1 (patch) | |
tree | bf315bab0ce578b541b228e77185722bf54ec128 /apps/recorder/keyboard.c | |
parent | ba92a1f800c2ff3c548267a9f55b2ee8a80bc91d (diff) |
Always reset glyph width for loadable keyboards fixes FS#6220
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14394 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/recorder/keyboard.c')
-rw-r--r-- | apps/recorder/keyboard.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/recorder/keyboard.c b/apps/recorder/keyboard.c index ca260b7bb0..b0901782ba 100644 --- a/apps/recorder/keyboard.c +++ b/apps/recorder/keyboard.c @@ -381,9 +381,7 @@ int kbd_input(char* text, int buflen) /* find max width of keyboard glyphs */ for (i = 0; i < pm->nchars; i++) { - w = font_get_width(pm->font, pm->kbd_buf[i]); - if (w > pm->font_w) - pm->font_w = w; + pm->font_w = font_get_width(pm->font, pm->kbd_buf[i]); } /* Since we're going to be adding spaces, make sure that we check |