summaryrefslogtreecommitdiff
path: root/src/network/network_gui.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-11-20 20:10:06 +0000
committeralberth <alberth@openttd.org>2009-11-20 20:10:06 +0000
commit777d5ce12eaf60389746245f3e3ceae408afc17e (patch)
tree6cd2b30b16b1156dbce5f6814cbb6f63be98c14b /src/network/network_gui.cpp
parente166d5b4028432b5f16234b2ae1d045f5fafe3a8 (diff)
downloadopenttd-777d5ce12eaf60389746245f3e3ceae408afc17e.tar.xz
(svn r18201) -Codechange (r18092): No need anymore for initializing nested widgets for Widget* arrays.
Diffstat (limited to 'src/network/network_gui.cpp')
-rw-r--r--src/network/network_gui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/network/network_gui.cpp b/src/network/network_gui.cpp
index ad9624a87..2d6564da0 100644
--- a/src/network/network_gui.cpp
+++ b/src/network/network_gui.cpp
@@ -167,7 +167,7 @@ public:
}
}
- void AssignSizePosition(SizingType sizing, uint x, uint y, uint given_width, uint given_height, bool allow_resize_x, bool allow_resize_y, bool rtl)
+ void AssignSizePosition(SizingType sizing, uint x, uint y, uint given_width, uint given_height, bool rtl)
{
assert(given_width >= this->smallest_x && given_height >= this->smallest_y);
@@ -198,7 +198,7 @@ public:
child_wid = rtl ? this->tail : this->head;
while (child_wid != NULL) {
if (this->visible[i]) {
- child_wid->AssignSizePosition(sizing, x + position, y, child_wid->current_x, this->current_y, allow_resize_x, (this->resize_y > 0), rtl);
+ child_wid->AssignSizePosition(sizing, x + position, y, child_wid->current_x, this->current_y, rtl);
position += child_wid->current_x;
}