mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
scroll_engine: Add STYLE_NONE to allow for drawing lines without styling.
This allows to draw lines without destroying styles that were drawn manually (e.g. from apps/) beforehand. Change-Id: I0de290c9343061efb115e1b76da5b76395c2b2af
This commit is contained in:
parent
b094d80dab
commit
26801b3bd8
3 changed files with 13 additions and 9 deletions
|
@ -360,6 +360,12 @@ static void LCDFN(putsxyofs_style)(int xpos, int ypos,
|
|||
int text_ypos = ypos;
|
||||
int line_height = font_get(current_vp->font)->height;
|
||||
text_ypos += h/2 - line_height/2; /* center the text in the line */
|
||||
|
||||
if ((style & STYLE_MODE_MASK) == STYLE_NONE) {
|
||||
if (str[0])
|
||||
LCDFN(putsxyofs)(xpos, text_ypos, offset, str);
|
||||
return;
|
||||
}
|
||||
#if defined(MAIN_LCD) && defined(HAVE_LCD_COLOR)
|
||||
int oldfgcolor = current_vp->fg_pattern;
|
||||
int oldbgcolor = current_vp->bg_pattern;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue