fix position of menu entries if length > 10
authorkub <derkub@gmail.com>
Fri, 26 Mar 2021 19:06:43 +0000 (20:06 +0100)
committerkub <derkub@gmail.com>
Wed, 26 Jan 2022 19:39:48 +0000 (19:39 +0000)
menu.c

diff --git a/menu.c b/menu.c
index 65cb26a..6c6392a 100644 (file)
--- a/menu.c
+++ b/menu.c
@@ -630,7 +630,7 @@ static void me_draw(const menu_entry *entries, int sel, void (*draw_more)(void))
                                offs = x + col2_offs;\r
                                len = strlen(names[i]);\r
                                if (len > 10)\r
-                                       offs += (10 - len - 2) * me_mfont_w;\r
+                                       offs += (10 - len) * me_mfont_w;\r
                                if (offs < leftname_end)\r
                                        offs = leftname_end;\r
                                if (i == *(int *)ent->var) {\r