fix min aspect handling, patch from Martin Garton #94943

2002-10-18  Havoc Pennington  <hp@redhat.com>

	* src/window.c (constrain_size): fix min aspect handling,
	patch from Martin Garton #94943
This commit is contained in:
Havoc Pennington 2002-10-18 18:58:05 +00:00 committed by Havoc Pennington
parent 149e8d12cd
commit 44a63a9911
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2002-10-18 Havoc Pennington <hp@redhat.com>
* src/window.c (constrain_size): fix min aspect handling,
patch from Martin Garton #94943
2002-10-18 Andras Timar <timar@gnome.hu>
* configure.in: Added hu to ALL_LINGUAS.

View File

@ -5603,7 +5603,7 @@ constrain_size (MetaWindow *window,
if (min_aspect * height > width)
{
delta = FLOOR (height - width * min_aspect, window->size_hints.height_inc);
delta = FLOOR (height - width / min_aspect, window->size_hints.height_inc);
if (height - delta >= window->size_hints.min_height)
height -= delta;
else