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

Method GetDefaultWidth

src/window.cpp:137–140  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

135 * @return Width in pixels.
136 */
137int16_t WindowDesc::GetDefaultWidth() const
138{
139 return this->pref_width != 0 ? this->pref_width : ScaleGUITrad(this->default_width_trad);
140}
141
142/**
143 * Determine default height of window.

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