mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
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:
parent
149e8d12cd
commit
44a63a9911
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user