summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/gui/skin_engine/skin_display.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/apps/gui/skin_engine/skin_display.c b/apps/gui/skin_engine/skin_display.c
index 02e9d39711..d60690bdbd 100644
--- a/apps/gui/skin_engine/skin_display.c
+++ b/apps/gui/skin_engine/skin_display.c
@@ -581,7 +581,7 @@ void write_line(struct screen *display, struct align_pos *format_align,
581 /* Nasty hack: we output an empty scrolling string, 581 /* Nasty hack: we output an empty scrolling string,
582 which will reset the scroller for that line */ 582 which will reset the scroller for that line */
583 display->puts_scroll(0, line, (unsigned char *)""); 583 display->puts_scroll(0, line, (unsigned char *)"");
584 584#ifdef HAVE_LCD_BITMAP
585 /* print aligned strings */ 585 /* print aligned strings */
586 if (left_width != 0) 586 if (left_width != 0)
587 { 587 {
@@ -599,6 +599,23 @@ void write_line(struct screen *display, struct align_pos *format_align,
599 display->puts_style_xyoffset(right_xpos/space_width, line, 599 display->puts_style_xyoffset(right_xpos/space_width, line,
600 (unsigned char *)format_align->right, style, 0, 0); 600 (unsigned char *)format_align->right, style, 0, 0);
601 } 601 }
602#else
603 if (left_width != 0)
604 {
605 display->putsxy(left_xpos, line,
606 (unsigned char *)format_align->left);
607 }
608 if (center_width != 0)
609 {
610 display->putsxy(center_xpos, line,
611 (unsigned char *)format_align->center);
612 }
613 if (right_width != 0)
614 {
615 display->putsxy(right_xpos, line,
616 (unsigned char *)format_align->right);
617 }
618#endif
602 } 619 }
603} 620}
604 621