removed spow(x, 0); calls, I did them for consistency's sake, but it should be rather obvious how the scaling works anyways
Anselm R. Garbe garbeam@gmail.com
Sun, 05 Aug 2007 16:00:08 +0200
1 files changed,
3 insertions(+),
3 deletions(-)
jump to
M
layout.c
→
layout.c
@@ -43,7 +43,7 @@ for(i = 0; i < n; i++)
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 @@ for(sum = 0, i = 0; i < (n - nmaster); i++)
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));