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

From: Anselm R. Garbe <garbeam_AT_gmail.com>
Date: Sun Aug 05 16:08:11 2007

changeset: 937:453ee57a297c
tag: tip
user: Anselm R. Garbe <garbeam_AT_gmail.com>
date: Sun Aug 05 16:00:08 2007 +0200
summary: removed spow(x, 0); calls, I did them for consistency's sake, but it should be rather obvious how the scaling works anyways

diff -r bc99eda6fbcd -r 453ee57a297c layout.c
--- a/layout.c Sun Aug 05 15:58:07 2007 +0200
+++ b/layout.c Sun Aug 05 16:00:08 2007 +0200
@@ -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));
Received on Sun Aug 05 2007 - 16:08:11 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:57:45 UTC