mirror of
https://github.com/RGBCube/serenity
synced 2025-05-24 18:05:09 +00:00
![]() 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 |