diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2013-04-12 07:27:08 +0200 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2013-12-14 23:11:31 +0100 |
| commit | 26801b3bd8f11fe680146086aa0a2fd12e7de289 (patch) | |
| tree | e9ea482107bf77382a07c842fa7a5f65e4a40ead /firmware/drivers | |
| parent | b094d80dab4f7ac501172d0412e9e53289ede27b (diff) | |
| download | rockbox-26801b3bd8f11fe680146086aa0a2fd12e7de289.zip rockbox-26801b3bd8f11fe680146086aa0a2fd12e7de289.tar.gz rockbox-26801b3bd8f11fe680146086aa0a2fd12e7de289.tar.bz2 rockbox-26801b3bd8f11fe680146086aa0a2fd12e7de289.tar.xz | |
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
Diffstat (limited to 'firmware/drivers')
| -rw-r--r-- | firmware/drivers/lcd-bitmap-common.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/drivers/lcd-bitmap-common.c b/firmware/drivers/lcd-bitmap-common.c index 10a567e..c04f57e 100644 --- a/firmware/drivers/lcd-bitmap-common.c +++ b/firmware/drivers/lcd-bitmap-common.c @@ -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; |