diff options
author | Anselm R. Garbe <garbeam@gmail.com> | 2007-08-05 16:00:08 +0200 |
---|---|---|
committer | Anselm R. Garbe <garbeam@gmail.com> | 2007-08-05 16:00:08 +0200 |
commit | 2cd16097708cf38ab668e9131a60d6dd937f246b (patch) | |
tree | c0ed0fb36336e28d8ac2485560227378890c34fb | |
parent | 85c9ebf2fc7d8e531f9b29c78eac70543cf0c832 (diff) |
removed spow(x, 0); calls, I did them for consistency's sake, but it should be rather obvious how the scaling works anyways
-rw-r--r-- | layout.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -43,7 +43,7 @@ tile(void) { 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 @@ tile(void) { 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)); |