From 115c01b74ebd57382679bec5c6e1ff5604370cbf Mon Sep 17 00:00:00 2001 From: Connor Lane Smith Date: Fri, 30 Jul 2010 10:25:55 +0100 Subject: new libdraw --- dinput.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dinput.c') diff --git a/dinput.c b/dinput.c index e861afc..4bbc7bc 100644 --- a/dinput.c +++ b/dinput.c @@ -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); } -- cgit v1.2.3