aboutsummaryrefslogtreecommitdiff
path: root/menulist.c
diff options
context:
space:
mode:
Diffstat (limited to 'menulist.c')
-rw-r--r--menulist.c3
1 files changed, 2 insertions, 1 deletions
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 */