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>
This commit is contained in:
parent
a71ce0daa6
commit
23b6c8f7ca
|
@ -584,6 +584,15 @@ int wborder(WINDOW *win, chtype ls, chtype rs, chtype ts, chtype bs,
|
||||||
{
|
{
|
||||||
int x, y;
|
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++) {
|
for(y = 0; y <= win->_maxy; y++) {
|
||||||
|
|
||||||
if (y == 0) {
|
if (y == 0) {
|
||||||
|
|
Loading…
Reference in New Issue