mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-04 14:37:46 -04:00
fix position of menu entries if length > 10
This commit is contained in:
parent
62128bad6d
commit
de24250ab5
1 changed files with 1 additions and 1 deletions
2
menu.c
2
menu.c
|
@ -630,7 +630,7 @@ static void me_draw(const menu_entry *entries, int sel, void (*draw_more)(void))
|
|||
offs = x + col2_offs;
|
||||
len = strlen(names[i]);
|
||||
if (len > 10)
|
||||
offs += (10 - len - 2) * me_mfont_w;
|
||||
offs += (10 - len) * me_mfont_w;
|
||||
if (offs < leftname_end)
|
||||
offs = leftname_end;
|
||||
if (i == *(int *)ent->var) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue