Made the fair layout really fair
commit5302d707db534ef1e9370da0c669abb660f67031
authorNorbert Zeh <nzeh@cs.dal.ca>
Wed, 19 Nov 2008 14:28:09 +0000 (19 10:28 -0400)
committerJulien Danjou <julien@danjou.info>
Wed, 19 Nov 2008 16:02:58 +0000 (19 17:02 +0100)
tree62cf94d9706959a54c26151fb78276fc40b1ad47
parentedd0ae73e2704691cdaa8d1a0721d68322db3c85
Made the fair layout really fair

The fair layout had the same issue as the slave columns in tiling layout
in that all strips were filled maximally with cells up to the last, and
the last strip may have significantly fewer cells than the other strips.
In my mind, that's not fair.  The new strategy makes sure the numbers of
cells in any two strips differ by no more than one.

Signed-off-by: Julien Danjou <julien@danjou.info>
layouts/fair.c