[dwm] bad operator precedence in aspect revert

From: Peter Hartlich <sgkkr_AT_hartlich.com>
Date: Tue, 2 Sep 2008 19:55:26 +0200

Hi Anselm,

Changeset 1343:f4707b7bd3a2 introduced erroneous parentheses in
(float)(w / h) and (float)(h / w). Now there is an integer devision,
and the result is converted to float, instead of converting the
denominator to force a float division.

This leads to funky behavior when resizing an mplayer window. A fix
is attached.

Regards,
Peter

Received on Tue Sep 02 2008 - 17:55:26 UTC

This archive was generated by hypermail 2.2.0 : Tue Sep 02 2008 - 18:00:05 UTC