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

Method GetDefaultHeight

src/window.cpp:147–150  ·  view source on GitHub ↗

* Determine default height of window. * This is either a stored user preferred size, or the built-in default. * @return Height in pixels. */

Source from the content-addressed store, hash-verified

145 * @return Height in pixels.
146 */
147int16_t WindowDesc::GetDefaultHeight() const
148{
149 return this->pref_height != 0 ? this->pref_height : ScaleGUITrad(this->default_height_trad);
150}
151
152/**
153 * Load all WindowDesc settings from _windows_file.

Callers 5

DispatchLeftClickEventFunction · 0.80
ReInitMethod · 0.80
LocalGetWindowPlacementFunction · 0.80
FinishInitNestedMethod · 0.80
ReplaceListMethod · 0.80

Calls 1

ScaleGUITradFunction · 0.70

Tested by

no test coverage detected