Wine update to dialog.c, see bug 3644.

svn path=/trunk/; revision=35395
This commit is contained in:
James Tabor 2008-08-16 16:01:03 +00:00
parent bafb77d60c
commit a878cd2e46

View file

@ -755,14 +755,13 @@ static HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCVOID dlgTemplate,
{
rect.left += MulDiv(template.x, xBaseUnit, 4);
rect.top += MulDiv(template.y, yBaseUnit, 8);
if( !(template.style & (WS_CHILD|DS_ABSALIGN)) )
ClientToScreen( owner, (POINT *)&rect );
}
if ( !(template.style & WS_CHILD) )
{
INT dX, dY;
if( !(template.style & DS_ABSALIGN) )
ClientToScreen( owner, (POINT *)&rect );
/* try to fit it into the desktop */
if( (dX = rect.left + rect.right + GetSystemMetrics(SM_CXDLGFRAME)