author | Anselm R Garbe <garbeam@gmail.com> |
Tue, 02 Sep 2008 22:36:06 +0100 | |
changeset 1353 | 8a9a1dbeff49 |
parent 1352 | eb1eb9811706 |
child 1354 | dced80b409d8 |
--- a/dwm.c Tue Sep 02 18:47:01 2008 +0100 +++ b/dwm.c Tue Sep 02 22:36:06 2008 +0100 @@ -1056,9 +1056,9 @@ /* adjust for aspect limits */ if(c->mina > 0 && c->maxa > 0) { - if(c->maxa < (float)(w / h)) + if(c->maxa < (float)w / h) w = h * c->maxa; - else if(c->mina < (float)(h / w)) + else if(c->mina < (float)h / w) h = w * c->mina; }