From ecee83f1b2184f8443d8fc4a32176dcbfa0bd7b0 Mon Sep 17 00:00:00 2001 From: rodri Date: Fri, 29 Sep 2023 15:15:49 +0000 Subject: paint the none entry in the middle of the row too. --- menulist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/menulist.c b/menulist.c index 52b5362..9b439fa 100644 --- a/menulist.c +++ b/menulist.c @@ -132,8 +132,9 @@ menulist_draw(Menulist *ml, Image *dst) er.max.y = er.min.y + font->height+Vspace; } if(i == 0){ + width = stringwidth(font, none); draw(dst, er, display->white, nil, ZP); - string(dst, er.min, display->black, ZP, font, none); + string(dst, addpt(er.min, Pt(Dx(er)/2 - width/2,0)), display->black, ZP, font, none); } /* draw scroll */ -- cgit v1.2.3