relation relative merge
This commit is contained in:
+3
-2
@@ -161,7 +161,7 @@ void Person::print()const
|
||||
|
||||
U16 Person::boxWidth() const
|
||||
{
|
||||
return name_.size() + 4 - 1; /* TODO: get actual lenght */
|
||||
return name_.size() + 4; /* TODO: get actual lenght */
|
||||
}
|
||||
|
||||
|
||||
@@ -181,7 +181,8 @@ void Person::draw(I16 drawY, I16 drawX) const
|
||||
U16 width = boxWidth();
|
||||
WINDOW* pad = newpad(BOX_HEIGHT, width);
|
||||
|
||||
box(pad, BOX_HEIGHT, width);
|
||||
wborder(pad, ACS_VLINE, ACS_VLINE, ACS_HLINE, ACS_HLINE, ACS_LTEE, ACS_URCORNER, ACS_LTEE, ACS_LRCORNER );
|
||||
/* box(pad, BOX_HEIGHT, width); */
|
||||
mvwaddstr(pad, 2, 2, name_.data());
|
||||
|
||||
pnoutrefresh(pad, 0, 0,
|
||||
|
||||
Reference in New Issue
Block a user