lv_draw_label bugfix (old rounding from LV_FONT_ANTIALIAS)

This commit is contained in:
Gabor Kiss-Vamosi
2018-02-23 15:19:39 +01:00
parent a11957d0b4
commit c4503cb8f8
2 changed files with 20 additions and 23 deletions

View File

@@ -362,10 +362,6 @@ void lv_draw_label(const lv_area_t * coords,const lv_area_t * mask, const lv_sty
letter_w = lv_font_get_width(font, letter);
pos.x += letter_w + style->text.letter_space;
/* Round error occurs in x position
* When odd widths are scaled down the last 1 is lost. So the letters seems shorter.
* Now calculate according to it to be consequent */
if(letter_w & 0x01) pos.x--;
}
/*Go to next line*/
line_start = line_end;