Do not allow glutGet to reposition the window 1 pixel toward bottom right.
authorDon Heyse <dheyse@hotmail.com>
Mon, 2 Jun 2003 18:18:07 +0000 (18:18 +0000)
committerDon Heyse <dheyse@hotmail.com>
Mon, 2 Jun 2003 18:18:07 +0000 (18:18 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@57 7f0cb862-5218-0410-a997-914c9d46530a

freeglut-1.3/freeglut_state.c

index bd0b1e6..7da99fa 100644 (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 );
         }
 
         /*