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:
parent
48bd726e43
commit
1156a50ab1
@ -381,10 +381,10 @@ int FGAPIENTRY glutGet( GLenum eWhat )
|
|||||||
*/
|
*/
|
||||||
if ( fgStructure.Window->Parent == NULL )
|
if ( fgStructure.Window->Parent == NULL )
|
||||||
{
|
{
|
||||||
winRect.left += GetSystemMetrics( SM_CXSIZEFRAME ) - 1;
|
winRect.left += GetSystemMetrics( SM_CXSIZEFRAME );
|
||||||
winRect.right -= GetSystemMetrics( SM_CXSIZEFRAME ) - 1;
|
winRect.right -= GetSystemMetrics( SM_CXSIZEFRAME );
|
||||||
winRect.top += GetSystemMetrics( SM_CYSIZEFRAME ) - 1 + GetSystemMetrics( SM_CYCAPTION );
|
winRect.top += GetSystemMetrics( SM_CYSIZEFRAME ) + GetSystemMetrics( SM_CYCAPTION );
|
||||||
winRect.bottom -= GetSystemMetrics( SM_CYSIZEFRAME ) + 1;
|
winRect.bottom -= GetSystemMetrics( SM_CYSIZEFRAME );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user