summaryrefslogtreecommitdiff
path: root/payloads/libpayload/curses
diff options
context:
space:
mode:
authorPatrick Georgi <Patrick.Georgi@secunet.com>2011-03-15 12:34:04 +0100
committerPatrick Georgi <patrick@georgi-clan.de>2011-07-07 22:29:18 +0200
commit23b6c8f7caa09ed714bce9b6572b6067ae0498c6 (patch)
tree9bb09b2e63dc1fcccd045df9b850cce84f2ae430 /payloads/libpayload/curses
parenta71ce0daa6ff6460d02b70a6436ce4d92da3009f (diff)
libpayload: fix wborder()
wborder didn't provide default characters to draw a border. Change-Id: Ib746ed16be341598fd9fa1f1b7577606d1abd9e5 Signed-off-by: Patrick Georgi <patrick.georgi@secunet.com> Reviewed-on: http://review.coreboot.org/84 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'payloads/libpayload/curses')
-rw-r--r--payloads/libpayload/curses/tinycurses.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/payloads/libpayload/curses/tinycurses.c b/payloads/libpayload/curses/tinycurses.c
index 4d3e8e1be2..fb492b6cea 100644
--- a/payloads/libpayload/curses/tinycurses.c
+++ b/payloads/libpayload/curses/tinycurses.c
@@ -584,6 +584,15 @@ int wborder(WINDOW *win, chtype ls, chtype rs, chtype ts, chtype bs,
{
int x, y;
+ if (ls == 0) ls = ACS_VLINE;
+ if (rs == 0) rs = ACS_VLINE;
+ if (ts == 0) ts = ACS_HLINE;
+ if (bs == 0) bs = ACS_HLINE;
+ if (tl == 0) tl = ACS_ULCORNER;
+ if (tr == 0) tr = ACS_URCORNER;
+ if (bl == 0) bl = ACS_LLCORNER;
+ if (br == 0) br = ACS_LRCORNER;
+
for(y = 0; y <= win->_maxy; y++) {
if (y == 0) {