forked from len0rd/rockbox
Text viewer: Fix red
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25516 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
9e4bd41e41
commit
2434a92b60
1 changed files with 3 additions and 1 deletions
|
|
@ -641,10 +641,10 @@ static int glyph_width(unsigned short ch)
|
||||||
if (ch == 0)
|
if (ch == 0)
|
||||||
ch = ' ';
|
ch = ' ';
|
||||||
|
|
||||||
|
#ifdef HAVE_LCD_BITMAP
|
||||||
if (rb->is_diacritic(ch, NULL))
|
if (rb->is_diacritic(ch, NULL))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
#ifdef HAVE_LCD_BITMAP
|
|
||||||
return rb->font_get_width(pf, ch);
|
return rb->font_get_width(pf, ch);
|
||||||
#else
|
#else
|
||||||
return 1;
|
return 1;
|
||||||
|
|
@ -733,9 +733,11 @@ static int col = 0;
|
||||||
|
|
||||||
static inline void advance_conters(unsigned short ch, int* k, int* width)
|
static inline void advance_conters(unsigned short ch, int* k, int* width)
|
||||||
{
|
{
|
||||||
|
#ifdef HAVE_LCD_BITMAP
|
||||||
/* diacritics do not count */
|
/* diacritics do not count */
|
||||||
if (rb->is_diacritic(ch, NULL))
|
if (rb->is_diacritic(ch, NULL))
|
||||||
return;
|
return;
|
||||||
|
#endif
|
||||||
|
|
||||||
*width += glyph_width(ch);
|
*width += glyph_width(ch);
|
||||||
(*k)++;
|
(*k)++;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue