Re: [hackers] [dwm] applied Peter Hartlichs aspect revert fix || Anselm R Garbe

From: Anselm R Garbe <garbeam_AT_gmail.com>
Date: Wed, 3 Sep 2008 09:04:27 +0100

Btw. applied and thanks ;)

--Anselm

2008/9/2 <hg_AT_suckless.org>:
> changeset: 1353:8a9a1dbeff49
> tag: tip
> user: Anselm R Garbe <garbeam_AT_gmail.com>
> date: Tue Sep 02 22:36:06 2008 +0100
> files: dwm.c
> description:
> applied Peter Hartlichs aspect revert fix
>
>
> diff -r eb1eb9811706 -r 8a9a1dbeff49 dwm.c
> --- 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;
> }
>
>
>
>
Received on Wed Sep 03 2008 - 08:04:27 UTC

This archive was generated by hypermail 2.2.0 : Wed Sep 03 2008 - 08:12:06 UTC