1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

distribute_rows_or_cols(): simplify code.

This commit is contained in:
Laurent MONIN 2006-06-06 23:09:19 +02:00 committed by Laurent MONIN
parent 7a42d2f41d
commit 824b4374fa

View File

@ -302,12 +302,11 @@ distribute_rows_or_cols(int *val_, int max_value, int *values, int values_count)
int i;
int divisor = 0;
int tmp_val;
int val = *val_;
int val = *val_ - max_value;
for (i = 0; i < values_count; i++)
if (values[i] < 1)
values[i] = 1;
val -= max_value;
for (i = 0; i < values_count; i++)
divisor += values[i];