Simplify the requirement struct.

This commit is contained in:
ArthurSonzogni
2020-06-01 16:13:29 +02:00
committed by Arthur Sonzogni
parent 3490d56662
commit 7f7775ba62
15 changed files with 92 additions and 95 deletions

View File

@@ -15,8 +15,8 @@ class Text : public Node {
~Text() {}
void ComputeRequirement() override {
requirement_.min.x = wstring_width(text_);
requirement_.min.y = 1;
requirement_.min_x = wstring_width(text_);
requirement_.min_y = 1;
}
void Render(Screen& screen) override {