From: kub Date: Fri, 26 Mar 2021 19:06:43 +0000 (+0100) Subject: fix position of menu entries if length > 10 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de24250ab5038797e8f5ff8754d34a3219943134;hp=62128bad6decbd73a50a33fb8cba587aa8d41ba4;p=libpicofe.git fix position of menu entries if length > 10 --- diff --git a/menu.c b/menu.c index 65cb26a..6c6392a 100644 --- 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; 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) {