Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-04-17 10:05:56 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-17 10:17:55 +0300
commit37c76a7ec63dfcdc7e3aac9c348280188b20aaf9 (patch)
treec71049d4f121a467899279feeffaabed664f44cb /source/blender/editors/interface/interface_layout.c
parent600f12002be41e78e44da1c821ce4390d4f3725a (diff)
Cleanup: replace comments with meaningful variable names
Diffstat (limited to 'source/blender/editors/interface/interface_layout.c')
-rw-r--r--source/blender/editors/interface/interface_layout.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/editors/interface/interface_layout.c b/source/blender/editors/interface/interface_layout.c
index c834ea31bd4..a89d161b708 100644
--- a/source/blender/editors/interface/interface_layout.c
+++ b/source/blender/editors/interface/interface_layout.c
@@ -3742,9 +3742,10 @@ static void ui_litem_layout_column_flow(uiLayout *litem)
emy = 0; /* need to reset height again for next column */
col++;
- /* (< remaining width > - < space between remaining columns >) / <remamining columns > */
- w = ((litem->w - (x - litem->x)) - (flow->totcol - col - 1) * style->columnspace) /
- (flow->totcol - col);
+ const int remaining_width = litem->w - (x - litem->x);
+ const int remaining_width_between_columns = (flow->totcol - col - 1) * style->columnspace;
+ const int remaining_columns = flow->totcol - col;
+ w = (remaining_width - remaining_width_between_columns) / remaining_columns;
}
}