Panel now holds data on how it should be rendered and render just uses that instead of calculating it.
This commit is contained in:
parent
1a3bbaedda
commit
f79e7638c0
5 changed files with 27 additions and 17 deletions
|
@ -16,7 +16,7 @@ void Panel::add(Component child) {
|
|||
|
||||
void Panel::render() {
|
||||
$dirty = true;
|
||||
if($must_clear) $screen.Clear();
|
||||
if(must_clear) $screen.Clear();
|
||||
Render($screen, $component->Render());
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue