[hackers] [dmenu] fixed vlist alignment || Connor Lane Smith

From: <hg_AT_suckless.org>
Date: Wed, 5 May 2010 10:43:02 +0000 (UTC)

changeset: 300:545ec6141dc4
tag: tip
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Wed May 05 11:42:39 2010 +0100
files: dmenu.c
description:
fixed vlist alignment

diff -r e2717c2c0934 -r 545ec6141dc4 dmenu.c
--- a/dmenu.c Sun May 02 23:17:02 2010 +0100
+++ b/dmenu.c Wed May 05 11:42:39 2010 +0100
@@ -255,8 +255,7 @@
 drawmenuv(void) {
         Item *i;
 
- dc.x = 0;
- dc.w = mw;
+ dc.w = mw - dc.x;
         dc.y += dc.font.height + 2;
         for(i = curr; i != next; i=i->right) {
                 drawtext(i->text, (sel == i) ? dc.sel : dc.norm);
Received on Wed May 05 2010 - 10:43:02 UTC

This archive was generated by hypermail 2.2.0 : Wed May 05 2010 - 10:48:03 UTC