diff options
Diffstat (limited to 'apps/gui/skin_engine')
-rwxr-xr-x | apps/gui/skin_engine/skin_display.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/gui/skin_engine/skin_display.c b/apps/gui/skin_engine/skin_display.c index c2ede75e16..82eaa1f553 100755 --- a/apps/gui/skin_engine/skin_display.c +++ b/apps/gui/skin_engine/skin_display.c | |||
@@ -509,8 +509,10 @@ void write_line(struct screen *display, struct align_pos *format_align, | |||
509 | (center_width > scroll_width) || | 509 | (center_width > scroll_width) || |
510 | (right_width > scroll_width))) | 510 | (right_width > scroll_width))) |
511 | { | 511 | { |
512 | /* strings can be as large as MAX_LINE which exceeds put_lines() | ||
513 | * limit for inline strings. Use $t to avoid truncation */ | ||
512 | linedes->scroll = true; | 514 | linedes->scroll = true; |
513 | display->put_line(0, line * string_height, linedes, (unsigned char *)format_align->left); | 515 | display->put_line(0, line * string_height, linedes, "$t", format_align->left); |
514 | } | 516 | } |
515 | else | 517 | else |
516 | { | 518 | { |
@@ -532,13 +534,13 @@ void write_line(struct screen *display, struct align_pos *format_align, | |||
532 | #endif | 534 | #endif |
533 | /* print aligned strings */ | 535 | /* print aligned strings */ |
534 | if (left_width != 0) | 536 | if (left_width != 0) |
535 | display->put_line(0, line, linedes, format_align->left); | 537 | display->put_line(0, line, linedes, "$t", format_align->left); |
536 | 538 | ||
537 | if (center_width != 0) | 539 | if (center_width != 0) |
538 | display->put_line(center_xpos, line, linedes, format_align->center); | 540 | display->put_line(center_xpos, line, linedes, "$t", format_align->center); |
539 | 541 | ||
540 | if (right_width != 0) | 542 | if (right_width != 0) |
541 | display->put_line(right_xpos, line, linedes, format_align->right); | 543 | display->put_line(right_xpos, line, linedes, "$t", format_align->right); |
542 | } | 544 | } |
543 | } | 545 | } |
544 | 546 | ||