Do not allow glutGet to reposition the window 1 pixel toward bottom right.

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@57 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
dheyse 2003-06-02 18:18:07 +00:00
parent 48bd726e43
commit 1156a50ab1

View File

@ -381,10 +381,10 @@ int FGAPIENTRY glutGet( GLenum eWhat )
*/
if ( fgStructure.Window->Parent == NULL )
{
winRect.left += GetSystemMetrics( SM_CXSIZEFRAME ) - 1;
winRect.right -= GetSystemMetrics( SM_CXSIZEFRAME ) - 1;
winRect.top += GetSystemMetrics( SM_CYSIZEFRAME ) - 1 + GetSystemMetrics( SM_CYCAPTION );
winRect.bottom -= GetSystemMetrics( SM_CYSIZEFRAME ) + 1;
winRect.left += GetSystemMetrics( SM_CXSIZEFRAME );
winRect.right -= GetSystemMetrics( SM_CXSIZEFRAME );
winRect.top += GetSystemMetrics( SM_CYSIZEFRAME ) + GetSystemMetrics( SM_CYCAPTION );
winRect.bottom -= GetSystemMetrics( SM_CYSIZEFRAME );
}
/*