summaryrefslogtreecommitdiff
path: root/dmenu.c
diff options
context:
space:
mode:
authorConnor Lane Smith <cls@lubutu.com>2010-07-30 10:25:55 +0100
committerConnor Lane Smith <cls@lubutu.com>2010-07-30 10:25:55 +0100
commit115c01b74ebd57382679bec5c6e1ff5604370cbf (patch)
tree5908c6e7c4fa4611e240cc2e06067f44ca7304cc /dmenu.c
parentd77340ed53ab7b04e289569b00cb46bd6f3ec06b (diff)
new libdraw
Diffstat (limited to 'dmenu.c')
-rw-r--r--dmenu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/dmenu.c b/dmenu.c
index 2c1867c..076cffe 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -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);
@@ -140,6 +140,7 @@ drawbar(void) {
/* print prompt? */
if(prompt) {
dc.w = promptw;
+ drawbox(&dc, selcol);
drawtext(&dc, prompt, selcol);
dc.x += dc.w;
}
@@ -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);
}