summaryrefslogtreecommitdiff
path: root/apps/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins')
-rw-r--r--apps/plugins/viewer.c4
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
734static inline void advance_conters(unsigned short ch, int* k, int* width) 734static 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)++;