diff options
author | Tomer Shalev <shalev.tomer@gmail.com> | 2010-04-07 17:27:19 +0000 |
---|---|---|
committer | Tomer Shalev <shalev.tomer@gmail.com> | 2010-04-07 17:27:19 +0000 |
commit | 2434a92b609a894b7abba23dcdd63756bdfd682f (patch) | |
tree | 8324d549bc7f38f1b1b77ace850a95557a02dcc8 /apps | |
parent | 9e4bd41e416a2d48284947e9ccc09844d3db93ee (diff) |
Text viewer: Fix red
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25516 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r-- | apps/plugins/viewer.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/plugins/viewer.c b/apps/plugins/viewer.c index 8751b43e93..a5d51591ae 100644 --- a/apps/plugins/viewer.c +++ b/apps/plugins/viewer.c @@ -641,10 +641,10 @@ static int glyph_width(unsigned short ch) if (ch == 0) ch = ' '; +#ifdef HAVE_LCD_BITMAP if (rb->is_diacritic(ch, NULL)) return 0; -#ifdef HAVE_LCD_BITMAP return rb->font_get_width(pf, ch); #else return 1; @@ -733,9 +733,11 @@ static int col = 0; static inline void advance_conters(unsigned short ch, int* k, int* width) { +#ifdef HAVE_LCD_BITMAP /* diacritics do not count */ if (rb->is_diacritic(ch, NULL)) return; +#endif *width += glyph_width(ch); (*k)++; |