removed spow(x, 0); calls, I did them for consistency's sake, but it should be rather obvious how the scaling works anyways

master
Anselm R. Garbe 2007-08-05 16:00:08 +02:00
parent 85c9ebf2fc
commit 2cd1609770
1 changed files with 3 additions and 3 deletions

View File

@ -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));