mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-04 15:09:40 +00:00
Eyes: Resize the window based on the number of eyes
This commit is contained in:
parent
46dacbfb3e
commit
21a574f6d2
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue