mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:27:46 +00:00
Eyes: Resize the window based on the number of eyes
This commit is contained in:
parent
46dacbfb3e
commit
21a574f6d2
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue