diff options
author | roman.artiukhin <bahusdrive@gmail.com> | 2022-10-27 20:03:35 +0300 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-10-27 18:21:49 -0400 |
commit | 202eb8c06a0b2454b9b2ab0314fc43620f011e16 (patch) | |
tree | b4f4dee5a1acdb05a25eacdc9af83b67965a3db5 /apps/gui/skin_engine | |
parent | 4b7b7a0a838bb9952d07025f02e84ca549a2753e (diff) | |
download | rockbox-202eb8c06a0b2454b9b2ab0314fc43620f011e16.tar.gz rockbox-202eb8c06a0b2454b9b2ab0314fc43620f011e16.zip |
Fix wrong formatting in WPS
Fixes FS#13354 and FS#12980
Change-Id: I4ec4cb57cfb64494e633d0bb92e733d92593c075
Diffstat (limited to 'apps/gui/skin_engine')
-rw-r--r-- | apps/gui/skin_engine/skin_display.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/gui/skin_engine/skin_display.c b/apps/gui/skin_engine/skin_display.c index 49375829e6..3ff804263b 100644 --- a/apps/gui/skin_engine/skin_display.c +++ b/apps/gui/skin_engine/skin_display.c | |||
@@ -606,9 +606,9 @@ void write_line(struct screen *display, struct align_pos *format_align, | |||
606 | char *center = format_align->center ?: ""; | 606 | char *center = format_align->center ?: ""; |
607 | char *right = format_align->right ?: ""; | 607 | char *right = format_align->right ?: ""; |
608 | 608 | ||
609 | display->put_line(0, line, linedes, "$t$*s$t$*s$t", left, | 609 | display->put_line(0, line, linedes, "$t$*s$t$*s$t", left_width == 0 ? "" : left , |
610 | center_xpos - left_width, center, | 610 | center_xpos - left_width, center_width == 0 ? "" : center, |
611 | right_xpos - (center_xpos + center_width), right); | 611 | right_xpos - center_xpos - center_width, right_width == 0 ? "" : right); |
612 | } | 612 | } |
613 | } | 613 | } |
614 | 614 | ||