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
|
// FALLTHRU
|
||||||
default: {
|
default: {
|
||||||
int title_length = strlen(title);
|
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);
|
print("%s", title);
|
||||||
i += title_length - 1;
|
i += title_length - 1;
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
DEFAULT_ENTRY=1
|
DEFAULT_ENTRY=1
|
||||||
TIMEOUT=3
|
TIMEOUT=3
|
||||||
GRAPHICS=yes
|
#GRAPHICS=yes
|
||||||
MENU_FONT=boot:///boot/font.bin
|
MENU_FONT=boot:///boot/font.bin
|
||||||
VERBOSE=yes
|
VERBOSE=yes
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue