Patrick Georgi ([email protected]) just uploaded a new patch set to 
gerrit, which you can find at http://review.coreboot.org/84

-gerrit

commit f3a72e8244185a3d9226febac68739e11bb3a350
Author: Patrick Georgi <[email protected]>
Date:   Tue Mar 15 12:34:04 2011 +0100

    libpayload: fix wborder()
    
    wborder didn't provide default characters to draw a border.
    
    Change-Id: Ib746ed16be341598fd9fa1f1b7577606d1abd9e5
    Signed-off-by: Patrick Georgi <[email protected]>
---
 payloads/libpayload/curses/tinycurses.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/payloads/libpayload/curses/tinycurses.c 
b/payloads/libpayload/curses/tinycurses.c
index 4d3e8e1..fb492b6 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) {

-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to