author | Anselm R Garbe <garbeam@gmail.com> |
Fri, 17 Jul 2009 15:28:07 +0100 | |
changeset 1468 | 654a2e8064ae |
parent 1467 | d6c51030d117 |
child 1470 | 28fe7661aa15 |
child 1471 | 48ca21980c50 |
--- a/dwm.c Fri Jul 17 13:35:44 2009 +0100 +++ b/dwm.c Fri Jul 17 15:28:07 2009 +0100 @@ -350,9 +350,9 @@ /* adjust for aspect limits */ if(c->mina > 0 && c->maxa > 0) { if(c->maxa < (float)*w / *h) - *w = *h * c->maxa + 0.5; /* -Os double upcast workaround */ + *w = *h * c->maxa + 0.5; else if(c->mina < (float)*h / *w) - *h = *w * c->mina + 0.5; /* -Os double upcast workaround */ + *h = *w * c->mina + 0.5; } if(baseismin) { /* increment calculation requires this */ *w -= c->basew;