Xinqi Bao's Git
projects
/
dwm.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
|
inline
| side by side
removed spow(x, 0); calls, I did them for consistency's sake, but it should be rather...
[dwm.git]
/
layout.c
diff --git
a/layout.c
b/layout.c
index
2016917
..
7a7abae
100644
(file)
--- a/
layout.c
+++ b/
layout.c
@@
-43,7
+43,7
@@
tile(void) {
sum += spow(vratio, i);
mscale = wah / sum;
if(vratio >= 1)
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));
}
else
mmaxtile = bh > (mscale * spow(vratio, n - 1));
}
@@
-55,8
+55,8
@@
tile(void) {
sum += spow(vratio, i);
sscale = wah / sum;
if(vratio >= 1) {
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));
}
else {
mmaxtile = bh > (mscale * spow(vratio, nmaster - 1));