Another attempt to improve aspect ratio handling (pager sizing).

SVN revision: 40856
This commit is contained in:
Kim Woelders 2009-05-30 08:07:30 +00:00
parent cc87d01dab
commit 79ba2b00bc
1 changed files with 2 additions and 2 deletions

View File

@ -183,8 +183,8 @@ ICCCM_SizeMatch(const EWin * ewin, int wi, int hi, int *pwo, int *pho)
if ((w > 0) && (h > 0))
{
aspect = ((double)w) / ((double)h);
dw = ewin->icccm.w_inc / 2.;
dh = ewin->icccm.h_inc / 2.;
dw = ewin->icccm.w_inc / 4.;
dh = ewin->icccm.h_inc / 4.;
if (Mode.mode == MODE_RESIZE_H)
{
if (aspect < ewin->icccm.aspect_min)