Eyes: Resize the window based on the number of eyes

This commit is contained in:
AnotherTest 2020-05-25 21:20:39 +04:30 committed by Andreas Kling
parent 46dacbfb3e
commit 21a574f6d2

View file

@ -51,7 +51,7 @@ int main(int argc, char* argv[])
auto window = GUI::Window::construct();
window->set_title("Eyes");
window->set_rect(350, 270, 150, 100);
window->set_rect(350, 270, 75 * num_eyes, 100);
window->set_has_alpha_channel(true);
auto& eyes = window->set_main_widget<EyesWidget>(num_eyes);