(svn r18201) -Codechange (r18092): No need anymore for initializing nested widgets for Widget* arrays.

This commit is contained in:
alberth
2009-11-20 20:10:06 +00:00
parent e166d5b402
commit 777d5ce12e
5 changed files with 46 additions and 58 deletions

View File

@@ -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;
}