Panel now holds data on how it should be rendered and render just uses that instead of calculating it.

This commit is contained in:
Zed A. Shaw 2024-11-18 12:07:44 -05:00
parent 1a3bbaedda
commit f79e7638c0
5 changed files with 27 additions and 17 deletions

View file

@ -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());
}