If the aspect is to large, change the width.

SVN revision: 16294
This commit is contained in:
sebastid 2005-08-23 06:52:42 +00:00 committed by sebastid
parent 8167cf314e
commit 990737543f
1 changed files with 3 additions and 3 deletions

View File

@ -5048,8 +5048,8 @@ _e_border_resize_limit(E_Border *bd, int *w, int *h)
else if ((bd->client.icccm.max_aspect != 0.0) &&
(a > bd->client.icccm.max_aspect))
{
th = tw / bd->client.icccm.max_aspect;
*h = th + bd->client.icccm.base_h;
tw = th * bd->client.icccm.max_aspect;
*w = tw + bd->client.icccm.base_w;
}
}
else
@ -5060,7 +5060,7 @@ _e_border_resize_limit(E_Border *bd, int *w, int *h)
*h = *w / bd->client.icccm.min_aspect;
else if ((bd->client.icccm.max_aspect != 0.0) &&
(a > bd->client.icccm.max_aspect))
*h = *w / bd->client.icccm.max_aspect;
*w = *h * bd->client.icccm.max_aspect;
}
if (bd->client.icccm.base_w >= 0)
*w = bd->client.icccm.base_w +