diff options
author | alberth <alberth@openttd.org> | 2009-12-13 13:29:13 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2009-12-13 13:29:13 +0000 |
commit | 5d12f4286774b8066f4e3bf83d31df6e87fd752c (patch) | |
tree | c0c0fda434104fe8d88a54ce325db7add58133c4 /src | |
parent | 472e5501fa99b9db5c1ebccadf929e56e59fefdd (diff) | |
download | openttd-5d12f4286774b8066f4e3bf83d31df6e87fd752c.tar.xz |
(svn r18482) -Cleanup (r18092): Conversion to widget array is not done any more.
Diffstat (limited to 'src')
-rw-r--r-- | src/widget.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/widget.cpp b/src/widget.cpp index 0129fca4b..fd01b65f6 100644 --- a/src/widget.cpp +++ b/src/widget.cpp @@ -1775,19 +1775,11 @@ NWidgetLeaf::NWidgetLeaf(WidgetType tp, Colours colour, int index, uint16 data, void NWidgetLeaf::SetupSmallestSize(Window *w, bool init_array) { - if (w == NULL) { // Conversion to widget array. - this->smallest_x = this->min_x; - this->smallest_y = this->min_y; - /* All other data is already at the right place. */ - return; - } - if (this->index >= 0 && init_array) { // Fill w->nested_array[] assert(w->nested_array_size > (uint)this->index); w->nested_array[this->index] = this; } - /* A non-NULL window pointer acts as switch to turn dynamic widget sizing on. */ Dimension size = {this->min_x, this->min_y}; Dimension fill = {this->fill_x, this->fill_y}; Dimension resize = {this->resize_x, this->resize_y}; |