relation relative merge

This commit is contained in:
vrd
2022-12-28 14:19:44 +02:00
parent cc9b0ccc21
commit b3a2787fcd
6 changed files with 203 additions and 170 deletions
+3 -2
View File
@@ -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,