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

Method SetAspect

src/widget.cpp:1010–1014  ·  view source on GitHub ↗

* Set desired aspect ratio of this widget. * @param ratio Desired aspect ratio, or 0 for none. * @param flags Dimensions which should be resized. */

Source from the content-addressed store, hash-verified

1008 * @param flags Dimensions which should be resized.
1009 */
1010void NWidgetResizeBase::SetAspect(float ratio, AspectFlags flags)
1011{
1012 this->aspect_ratio = ratio;
1013 this->aspect_flags = flags;
1014}
1015
1016/**
1017 * Set desired aspect ratio of this widget, in terms of horizontal and vertical dimensions.

Callers 1

NWidgetLeafMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected