summaryrefslogtreecommitdiffstats
path: root/layout.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--layout.c6
1 files 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) {
43 sum += spow(vratio, i); 43 sum += spow(vratio, i);
44 mscale = wah / sum; 44 mscale = wah / sum;
45 if(vratio >= 1) 45 if(vratio >= 1)
46 mmaxtile = bh > (mscale * spow(vratio, 0)); 46 mmaxtile = bh > mscale;
47 else 47 else
48 mmaxtile = bh > (mscale * spow(vratio, n - 1)); 48 mmaxtile = bh > (mscale * spow(vratio, n - 1));
49 } 49 }
@@ -55,8 +55,8 @@ tile(void) {
55 sum += spow(vratio, i); 55 sum += spow(vratio, i);
56 sscale = wah / sum; 56 sscale = wah / sum;
57 if(vratio >= 1) { 57 if(vratio >= 1) {
58 mmaxtile = bh > (mscale * spow(vratio, 0)); 58 mmaxtile = bh > mscale;
59 smaxtile = bh > (sscale * spow(vratio, 0)); 59 smaxtile = bh > sscale;
60 } 60 }
61 else { 61 else {
62 mmaxtile = bh > (mscale * spow(vratio, nmaster - 1)); 62 mmaxtile = bh > (mscale * spow(vratio, nmaster - 1));