1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 01:51:03 +09:00

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
Notes: sideshowbarker 2024-07-19 06:09:15 +09:00

View file

@ -51,7 +51,7 @@ int main(int argc, char* argv[])
auto window = GUI::Window::construct(); auto window = GUI::Window::construct();
window->set_title("Eyes"); 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); window->set_has_alpha_channel(true);
auto& eyes = window->set_main_widget<EyesWidget>(num_eyes); auto& eyes = window->set_main_widget<EyesWidget>(num_eyes);