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

Method UpdateSize

src/widget.cpp:1134–1140  ·  view source on GitHub ↗

* Set absolute (post-scaling) minimal size of the widget. * The window will need to be reinited if the size is changed. * @param min_x Horizontal minimal size of the widget. * @param min_y Vertical minimal size of the widget. * @return true iff the widget minimum size has changed. */

Source from the content-addressed store, hash-verified

1132 * @return true iff the widget minimum size has changed.
1133 */
1134bool NWidgetResizeBase::UpdateSize(uint min_x, uint min_y)
1135{
1136 if (min_x == this->min_x && min_y == this->min_y) return false;
1137 this->min_x = min_x;
1138 this->min_y = min_y;
1139 return true;
1140}
1141
1142/**
1143 * Set absolute (post-scaling) minimal size of the widget.

Callers 2

UpdateQueryStringSizeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected