diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 10:05:56 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 10:17:55 +0300 |
commit | 37c76a7ec63dfcdc7e3aac9c348280188b20aaf9 (patch) | |
tree | c71049d4f121a467899279feeffaabed664f44cb | |
parent | 600f12002be41e78e44da1c821ce4390d4f3725a (diff) |
Cleanup: replace comments with meaningful variable names
-rw-r--r-- | source/blender/editors/interface/interface_layout.c | 7 |
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; } } |