1
0
Fork 0
forked from len0rd/rockbox

Fix wrong formatting in WPS

Fixes FS#13354 and FS#12980

Change-Id: I4ec4cb57cfb64494e633d0bb92e733d92593c075
This commit is contained in:
roman.artiukhin 2022-10-27 20:03:35 +03:00 committed by Aidan MacDonald
parent 4b7b7a0a83
commit 202eb8c06a

View file

@ -606,9 +606,9 @@ void write_line(struct screen *display, struct align_pos *format_align,
char *center = format_align->center ?: "";
char *right = format_align->right ?: "";
display->put_line(0, line, linedes, "$t$*s$t$*s$t", left,
center_xpos - left_width, center,
right_xpos - (center_xpos + center_width), right);
display->put_line(0, line, linedes, "$t$*s$t$*s$t", left_width == 0 ? "" : left ,
center_xpos - left_width, center_width == 0 ? "" : center,
right_xpos - center_xpos - center_width, right_width == 0 ? "" : right);
}
}