label auto_break style attribut moved to label attribute as fixw (fixwidth)

This commit is contained in:
Gabor
2016-06-15 10:23:10 +02:00
parent 494c1c09b9
commit de22388156
4 changed files with 53 additions and 35 deletions

View File

@@ -62,7 +62,7 @@ uint16_t txt_get_next_line(const char * txt, const font_t * font_p,
act_l += font_get_width(font_p, txt[i]);
/*If the txt is too long then finish, this is the line end*/
if(act_l >= max_l) {
if(act_l > max_l) {
/*If already a break character is found, then break there*/
if(last_break != TXT_NO_BREAK_FOUND) {
i = last_break;