scroll engine: Factor out renderer function so it can be called by lcd code.

This is used by lcd_puts_scroll_worker() to render the line immediately
instead of waiting for the next scroll tick when only the text was updated.
Previously lcd_puts_scroll_worker() did not render anything in this case
which could lead to visible blinking.

This fixes blinking scrolling lines with dynamic text in the skin engine.

Change-Id: I475bde8c8eb7c92f505e3c5ecf4d32bb90690536
This commit is contained in:
Thomas Martitz 2014-01-11 19:17:58 +01:00
parent 2a471c9e84
commit 26b317e094
3 changed files with 80 additions and 53 deletions

View file

@ -398,6 +398,9 @@ static void LCDFN(puts_scroll_worker)(int x, int y, const unsigned char *string,
s->height = height;
s->vp = current_vp;
LCDFN(scroll_info).lines++;
} else {
/* if only the text was updated render immediately */
LCDFN(scroll_now(s));
}
}