arrow offset
This commit is contained in:
parent
a5f31f5707
commit
75a19c35bd
2
dmenu.c
2
dmenu.c
|
@ -124,7 +124,7 @@ drawmenu(void) {
|
||||||
dc_drawtext(dc, "<", normcol);
|
dc_drawtext(dc, "<", normcol);
|
||||||
for(item = curr; item != next; item = item->right) {
|
for(item = curr; item != next; item = item->right) {
|
||||||
dc->x += dc->w;
|
dc->x += dc->w;
|
||||||
dc->w = MIN(dc_textw(dc, item->text), mw - dc->x);
|
dc->w = MIN(dc_textw(dc, item->text), mw - dc->x - dc_textw(dc, ">"));
|
||||||
dc_drawtext(dc, item->text, (item == sel) ? selcol : normcol);
|
dc_drawtext(dc, item->text, (item == sel) ? selcol : normcol);
|
||||||
}
|
}
|
||||||
dc->w = dc_textw(dc, ">");
|
dc->w = dc_textw(dc, ">");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user