| 806 | } |
| 807 | |
| 808 | Window* createWindowCentred(WindowType type, Ui::Size size, WindowFlags flags, const WindowEventList& events) |
| 809 | { |
| 810 | auto x = (Ui::width() / 2) - (size.width / 2); |
| 811 | auto y = std::max(28, (Ui::height() / 2) - (size.height / 2)); |
| 812 | return createWindow(type, { x, y }, size, flags, events); |
| 813 | } |
| 814 | |
| 815 | // 0x004C5FC8 |
| 816 | static void drawSingle(Gfx::DrawingContext& drawingCtx, Window* w, int32_t left, int32_t top, int32_t right, int32_t bottom) |