menu: Prefer left alignment for titles which are not divisible by 2
This commit is contained in:
parent
3ba705d082
commit
177b83de9c
|
@ -188,7 +188,7 @@ refresh:
|
|||
// FALLTHRU
|
||||
default: {
|
||||
int title_length = strlen(title);
|
||||
if (i == (term_cols / 2) - (title_length / 2) - 1) {
|
||||
if (i == (term_cols / 2) - DIV_ROUNDUP(title_length, 2)) {
|
||||
print("%s", title);
|
||||
i += title_length - 1;
|
||||
} else {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
DEFAULT_ENTRY=1
|
||||
TIMEOUT=3
|
||||
GRAPHICS=yes
|
||||
#GRAPHICS=yes
|
||||
MENU_FONT=boot:///boot/font.bin
|
||||
VERBOSE=yes
|
||||
|
||||
|
|
Loading…
Reference in New Issue