1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-27 00:34:46 +01:00

Pass ScreenSize to window creation functions

This commit is contained in:
Gymnasiast
2025-06-10 22:20:27 +02:00
parent bd6ae5848c
commit bdba89f428
78 changed files with 154 additions and 151 deletions

View File

@@ -1141,11 +1141,12 @@ namespace OpenRCT2::Ui::Windows
if (desc.X && desc.Y)
{
window = windowMgr->Create<CustomWindow>(
WindowClass::Custom, { *desc.X, *desc.Y }, desc.Width, desc.Height, windowFlags, owner, desc);
WindowClass::Custom, { *desc.X, *desc.Y }, { desc.Width, desc.Height }, windowFlags, owner, desc);
}
else
{
window = windowMgr->Create<CustomWindow>(WindowClass::Custom, desc.Width, desc.Height, windowFlags, owner, desc);
window = windowMgr->Create<CustomWindow>(
WindowClass::Custom, { desc.Width, desc.Height }, windowFlags, owner, desc);
}
return window;
}