# HG changeset patch # User Anselm R Garbe # Date 1207229959 -3600 # Node ID 22c669b2dd3673785c3476b9976da21e8783f745 # Parent f525cd0cfbd69a5c1b789c4e57279248393e8c52 yet another cleanup diff -r f525cd0cfbd6 -r 22c669b2dd36 dwm.c --- 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; }