mirror of https://github.com/OpenTTD/OpenTTD
Cleanup: Horizontal widget size is commonly width rather than length.
parent
3dbd6475fe
commit
5153e1b6e3
|
@ -1503,12 +1503,12 @@ void NWidgetVertical::AssignSizePosition(SizingType sizing, uint x, uint y, uint
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generic spacer widget.
|
* Generic spacer widget.
|
||||||
* @param length Horizontal size of the spacer widget.
|
* @param width Horizontal size of the spacer widget.
|
||||||
* @param height Vertical size of the spacer widget.
|
* @param height Vertical size of the spacer widget.
|
||||||
*/
|
*/
|
||||||
NWidgetSpacer::NWidgetSpacer(int length, int height) : NWidgetResizeBase(NWID_SPACER, 0, 0)
|
NWidgetSpacer::NWidgetSpacer(int width, int height) : NWidgetResizeBase(NWID_SPACER, 0, 0)
|
||||||
{
|
{
|
||||||
this->SetMinimalSize(length, height);
|
this->SetMinimalSize(width, height);
|
||||||
this->SetResize(0, 0);
|
this->SetResize(0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -543,7 +543,7 @@ private:
|
||||||
*/
|
*/
|
||||||
class NWidgetSpacer : public NWidgetResizeBase {
|
class NWidgetSpacer : public NWidgetResizeBase {
|
||||||
public:
|
public:
|
||||||
NWidgetSpacer(int length, int height);
|
NWidgetSpacer(int width, int height);
|
||||||
|
|
||||||
void SetupSmallestSize(Window *w, bool init_array) override;
|
void SetupSmallestSize(Window *w, bool init_array) override;
|
||||||
void FillNestedArray(NWidgetBase **array, uint length) override;
|
void FillNestedArray(NWidgetBase **array, uint length) override;
|
||||||
|
|
Loading…
Reference in New Issue