X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=freeglut-1.3%2Ffreeglut_state.c;h=7da99fabe7a4ab015869507e6c613671bca91086;hb=4718a4ac2bad82816c5169dcdd16967d058d6810;hp=bd0b1e6ae10597ded34ca8d95267c939fe84ae85;hpb=9777fcaf88f0f791fdd6b78f86fde4ac066d1c1e;p=freeglut diff --git a/freeglut-1.3/freeglut_state.c b/freeglut-1.3/freeglut_state.c index bd0b1e6..7da99fa 100644 --- a/freeglut-1.3/freeglut_state.c +++ b/freeglut-1.3/freeglut_state.c @@ -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 ); } /*