diff options
Diffstat (limited to 'firmware/drivers/lcd-bitmap-common.c')
-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 10a567edf1..c04f57ef22 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, | |||
360 | int text_ypos = ypos; | 360 | int text_ypos = ypos; |
361 | int line_height = font_get(current_vp->font)->height; | 361 | int line_height = font_get(current_vp->font)->height; |
362 | text_ypos += h/2 - line_height/2; /* center the text in the line */ | 362 | text_ypos += h/2 - line_height/2; /* center the text in the line */ |
363 | |||
364 | if ((style & STYLE_MODE_MASK) == STYLE_NONE) { | ||
365 | if (str[0]) | ||
366 | LCDFN(putsxyofs)(xpos, text_ypos, offset, str); | ||
367 | return; | ||
368 | } | ||
363 | #if defined(MAIN_LCD) && defined(HAVE_LCD_COLOR) | 369 | #if defined(MAIN_LCD) && defined(HAVE_LCD_COLOR) |
364 | int oldfgcolor = current_vp->fg_pattern; | 370 | int oldfgcolor = current_vp->fg_pattern; |
365 | int oldbgcolor = current_vp->bg_pattern; | 371 | int oldbgcolor = current_vp->bg_pattern; |