MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / OnInitialPosition

Method OnInitialPosition

src/window.cpp:1787–1790  ·  view source on GitHub ↗

virtual */

Source from the content-addressed store, hash-verified

1785}
1786
1787/* virtual */ Point Window::OnInitialPosition([[maybe_unused]]int16_t sm_width, [[maybe_unused]]int16_t sm_height, [[maybe_unused]]int window_number)
1788{
1789 return LocalGetWindowPlacement(this->window_desc, sm_width, sm_height, window_number);
1790}
1791
1792/**
1793 * Perform the first part of the initialization of a nested widget tree.

Callers 2

ReInitMethod · 0.95
FinishInitNestedMethod · 0.95

Calls 1

LocalGetWindowPlacementFunction · 0.85

Tested by

no test coverage detected