author | Anselm R Garbe <garbeam@gmail.com> |
Thu, 03 Apr 2008 14:39:19 +0100 | |
changeset 1169 | 22c669b2dd36 |
parent 1168 | f525cd0cfbd6 |
child 1170 | 8b4ef1a7d9ac |
--- a/dwm.c Thu Apr 03 14:38:58 2008 +0100 +++ b/dwm.c Thu Apr 03 14:39:19 2008 +0100 @@ -1191,9 +1191,9 @@ if(c->minax != c->maxax && c->minay != c->maxay && c->minax > 0 && c->maxax > 0 && c->minay > 0 && c->maxay > 0) { - if (w * c->maxay > h * c->maxax) + if(w * c->maxay > h * c->maxax) w = h * c->maxax / c->maxay; - else if (w * c->minay < h * c->minax) + else if(w * c->minay < h * c->minax) h = w * c->minay / c->minax; }