diff options
author | Peter Nelson <peter1138@openttd.org> | 2021-04-22 01:18:22 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2021-04-30 17:08:15 +0100 |
commit | 5153e1b6e38a75ef6eeb71760941018139feedea (patch) | |
tree | 00ad449efe9bcd61c48515bfe9080964aa304de4 /src/widget.cpp | |
parent | 3dbd6475fec5ebd63b18004bb94048460c4fb4a3 (diff) | |
download | openttd-5153e1b6e38a75ef6eeb71760941018139feedea.tar.xz |
Cleanup: Horizontal widget size is commonly width rather than length.
Diffstat (limited to 'src/widget.cpp')
-rw-r--r-- | src/widget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/widget.cpp b/src/widget.cpp index 1e3afb155..74a89eaea 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -1503,12 +1503,12 @@ void NWidgetVertical::AssignSizePosition(SizingType sizing, uint x, uint y, uint /** * 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. */ -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); } |