# HG changeset patch # User Anselm R. Garbe # Date 1186322408 -7200 # Node ID 453ee57a297cbf2f0372cc9565d85b18e1307327 # Parent bc99eda6fbcd326306a065600b2bf7784ff4b2a7 removed spow(x, 0); calls, I did them for consistency's sake, but it should be rather obvious how the scaling works anyways diff -r bc99eda6fbcd -r 453ee57a297c layout.c --- a/layout.c Sun Aug 05 15:58:07 2007 +0200 +++ b/layout.c Sun Aug 05 16:00:08 2007 +0200 @@ -43,7 +43,7 @@ sum += spow(vratio, i); mscale = wah / sum; if(vratio >= 1) - mmaxtile = bh > (mscale * spow(vratio, 0)); + mmaxtile = bh > mscale; else mmaxtile = bh > (mscale * spow(vratio, n - 1)); } @@ -55,8 +55,8 @@ sum += spow(vratio, i); sscale = wah / sum; if(vratio >= 1) { - mmaxtile = bh > (mscale * spow(vratio, 0)); - smaxtile = bh > (sscale * spow(vratio, 0)); + mmaxtile = bh > mscale; + smaxtile = bh > sscale; } else { mmaxtile = bh > (mscale * spow(vratio, nmaster - 1));