diff options
| author | Connor Lane Smith <cls@lubutu.com> | 2010-08-20 19:57:13 +0100 |
|---|---|---|
| committer | Connor Lane Smith <cls@lubutu.com> | 2010-08-20 19:57:13 +0100 |
| commit | 75a19c35bd9c880bbfdc5cbf3fd807803d04de89 (patch) | |
| tree | 9cf184dad425ab41c4d650e083bcde0612971499 | |
| parent | a5f31f570774ca1d4a504d8c13c96af0217635a7 (diff) | |
arrow offset
| -rw-r--r-- | dmenu.c | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -124,7 +124,7 @@ drawmenu(void) { | |||
| 124 | dc_drawtext(dc, "<", normcol); | 124 | dc_drawtext(dc, "<", normcol); |
| 125 | for(item = curr; item != next; item = item->right) { | 125 | for(item = curr; item != next; item = item->right) { |
| 126 | dc->x += dc->w; | 126 | dc->x += dc->w; |
| 127 | dc->w = MIN(dc_textw(dc, item->text), mw - dc->x); | 127 | dc->w = MIN(dc_textw(dc, item->text), mw - dc->x - dc_textw(dc, ">")); |
| 128 | dc_drawtext(dc, item->text, (item == sel) ? selcol : normcol); | 128 | dc_drawtext(dc, item->text, (item == sel) ? selcol : normcol); |
| 129 | } | 129 | } |
| 130 | dc->w = dc_textw(dc, ">"); | 130 | dc->w = dc_textw(dc, ">"); |
