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) | |
download | rockbox-2434a92b609a894b7abba23dcdd63756bdfd682f.tar.gz rockbox-2434a92b609a894b7abba23dcdd63756bdfd682f.zip |
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) | |||
641 | if (ch == 0) | 641 | if (ch == 0) |
642 | ch = ' '; | 642 | ch = ' '; |
643 | 643 | ||
644 | #ifdef HAVE_LCD_BITMAP | ||
644 | if (rb->is_diacritic(ch, NULL)) | 645 | if (rb->is_diacritic(ch, NULL)) |
645 | return 0; | 646 | return 0; |
646 | 647 | ||
647 | #ifdef HAVE_LCD_BITMAP | ||
648 | return rb->font_get_width(pf, ch); | 648 | return rb->font_get_width(pf, ch); |
649 | #else | 649 | #else |
650 | return 1; | 650 | return 1; |
@@ -733,9 +733,11 @@ static int col = 0; | |||
733 | 733 | ||
734 | static inline void advance_conters(unsigned short ch, int* k, int* width) | 734 | static inline void advance_conters(unsigned short ch, int* k, int* width) |
735 | { | 735 | { |
736 | #ifdef HAVE_LCD_BITMAP | ||
736 | /* diacritics do not count */ | 737 | /* diacritics do not count */ |
737 | if (rb->is_diacritic(ch, NULL)) | 738 | if (rb->is_diacritic(ch, NULL)) |
738 | return; | 739 | return; |
740 | #endif | ||
739 | 741 | ||
740 | *width += glyph_width(ch); | 742 | *width += glyph_width(ch); |
741 | (*k)++; | 743 | (*k)++; |