tnew libdraw - dmenu - Dmenu fork with xft fonts.
 (HTM) git clone git://r-36.net/dmenu
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 115c01b74ebd57382679bec5c6e1ff5604370cbf
 (DIR) parent d77340ed53ab7b04e289569b00cb46bd6f3ec06b
 (HTM) Author: Connor Lane Smith <cls@lubutu.com>
       Date:   Fri, 30 Jul 2010 10:25:55 +0100
       
       new libdraw
       Diffstat:
         dinput.c                            |       4 +++-
         dmenu.c                             |       5 +++--
       
       2 files changed, 6 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/dinput.c b/dinput.c
       t@@ -34,12 +34,14 @@ drawbar(void)
                /* print prompt? */
                if(prompt) {
                        dc.w = promptw;
       +                drawbox(&dc, selcol);
                        drawtext(&dc, prompt, selcol);
                        dc.x += dc.w;
                }
                dc.w = mw - dc.x;
                drawtext(&dc, text, normcol);
       -        drawcursor(&dc, text, cursor, normcol);
       +        drawline(&dc, textnw(&dc, text, cursor) + dc.font.height/2, 2, 1,
       +                        dc.font.height-2, normcol);
                commitdraw(&dc, win);
        }
        
 (DIR) diff --git a/dmenu.c b/dmenu.c
       t@@ -24,7 +24,7 @@ static void calcoffsetsv(void);
        static char *cistrstr(const char *s, const char *sub);
        static void cleanup(void);
        static void dinput(void);
       -static void drawitem(char *s, unsigned long col[ColLast]);
       +static void drawitem(const char *s, unsigned long col[ColLast]);
        static void drawmenuh(void);
        static void drawmenuv(void);
        static void match(void);
       t@@ -140,6 +140,7 @@ drawbar(void) {
                /* print prompt? */
                if(prompt) {
                        dc.w = promptw;
       +                drawbox(&dc, selcol);
                        drawtext(&dc, prompt, selcol);
                        dc.x += dc.w;
                }
       t@@ -156,7 +157,7 @@ drawbar(void) {
        }
        
        void
       -drawitem(char *s, unsigned long col[ColLast]) {
       +drawitem(const char *s, unsigned long col[ColLast]) {
                drawbox(&dc, col);
                drawtext(&dc, s, col);
        }