summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2009-05-21 17:45:12 +0000
committeralberth <alberth@openttd.org>2009-05-21 17:45:12 +0000
commit1122d625ae84584103ab124246b321f531b4da3c (patch)
treea7e8c9ec2d8f46cf7a121da86a5a3c8e65474c38 /src
parent438a5e77b7ee97ed459b9e0cd5d5d0a5da1b0956 (diff)
downloadopenttd-1122d625ae84584103ab124246b321f531b4da3c.tar.xz
(svn r16371) -Codechange (r16367): Properly align comments.
Diffstat (limited to 'src')
-rw-r--r--src/widget.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/widget.cpp b/src/widget.cpp
index b64f0dddf..2b8d11443 100644
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -1027,12 +1027,12 @@ NWidgetHorizontal::NWidgetHorizontal() : NWidgetPIPContainer(NWID_HORIZONTAL)
int NWidgetHorizontal::SetupSmallestSize()
{
int biggest_index = -1;
- this->smallest_x = 0; // Sum of minimal size of all childs.
- this->smallest_y = 0; // Biggest child.
- this->fill_x = false; // true if at least one child allows fill_x.
- this->fill_y = true; // true if all childs allow fill_y.
- this->resize_x = 0; // smallest non-zero child widget resize step.
- this->resize_y = 1; // smallest common child resize step
+ this->smallest_x = 0; // Sum of minimal size of all childs.
+ this->smallest_y = 0; // Biggest child.
+ this->fill_x = false; // true if at least one child allows fill_x.
+ this->fill_y = true; // true if all childs allow fill_y.
+ this->resize_x = 0; // smallest non-zero child widget resize step.
+ this->resize_y = 1; // smallest common child resize step
if (this->head != NULL) this->head->padding_left += this->pip_pre;
for (NWidgetBase *child_wid = this->head; child_wid != NULL; child_wid = child_wid->next) {
@@ -1152,12 +1152,12 @@ NWidgetVertical::NWidgetVertical() : NWidgetPIPContainer(NWID_VERTICAL)
int NWidgetVertical::SetupSmallestSize()
{
int biggest_index = -1;
- this->smallest_x = 0; // Biggest child.
- this->smallest_y = 0; // Sum of minimal size of all childs.
- this->fill_x = true; // true if all childs allow fill_x.
- this->fill_y = false; // true if at least one child allows fill_y.
- this->resize_x = 1; // smallest common child resize step
- this->resize_y = 0; // smallest non-zero child widget resize step.
+ this->smallest_x = 0; // Biggest child.
+ this->smallest_y = 0; // Sum of minimal size of all childs.
+ this->fill_x = true; // true if all childs allow fill_x.
+ this->fill_y = false; // true if at least one child allows fill_y.
+ this->resize_x = 1; // smallest common child resize step
+ this->resize_y = 0; // smallest non-zero child widget resize step.
if (this->head != NULL) this->head->padding_top += this->pip_pre;
for (NWidgetBase *child_wid = this->head; child_wid != NULL; child_wid = child_wid->next) {