From 2cd16097708cf38ab668e9131a60d6dd937f246b Mon Sep 17 00:00:00 2001 From: "Anselm R. Garbe" Date: Sun, 5 Aug 2007 16:00:08 +0200 Subject: removed spow(x, 0); calls, I did them for consistency's sake, but it should be rather obvious how the scaling works anyways --- layout.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/layout.c b/layout.c index 2016917..7a7abae 100644 --- a/layout.c +++ b/layout.c @@ -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)); -- cgit 1.4.1-2-gfad0 t;
summary refs log tree commit diff stats
path: root/LICENSE
blob: ec27f618489481e0490f4078a962236eff3c5168 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19