mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-27 01:50:24 +00:00
0cab3bca2f
Various applications were using the same slightly verbose code to center themselves on the screen/desktop: Gfx::IntRect window_rect { 0, 0, width, height }; window_rect.center_within(GUI::Desktop::the().rect()); window->set_rect(window_rect); Which now becomes: window->resize(width, height); window->center_on_screen(); |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
main.cpp | ||
ShutdownDialog.cpp | ||
ShutdownDialog.h |