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

From: <hg_AT_suckless.org>
Date: Tue, 2 Sep 2008 21:36:11 +0000 (UTC)

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 Tue Sep 02 2008 - 21:36:11 UTC

This archive was generated by hypermail 2.2.0 : Tue Sep 02 2008 - 21:48:05 UTC