mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 16:24:35 +01:00
Pass ScreenSize to window creation functions
This commit is contained in:
@@ -732,7 +732,7 @@ namespace OpenRCT2::Ui::Windows
|
||||
auto* windowMgr = Ui::GetWindowManager();
|
||||
windowMgr->CloseConstructionWindows();
|
||||
|
||||
auto* window = windowMgr->FocusOrCreate<TrackDesignPlaceWindow>(WindowClass::TrackDesignPlace, WW, WH, 0);
|
||||
auto* window = windowMgr->FocusOrCreate<TrackDesignPlaceWindow>(WindowClass::TrackDesignPlace, { WW, WH }, 0);
|
||||
if (window != nullptr)
|
||||
{
|
||||
window->Init(std::move(openTrackDesign));
|
||||
|
||||
Reference in New Issue
Block a user