From 1156a50ab159d81db9aaaf690bf6bc09d52f3709 Mon Sep 17 00:00:00 2001 From: dheyse Date: Mon, 2 Jun 2003 18:18:07 +0000 Subject: [PATCH] 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 --- freeglut/freeglut/freeglut-1.3/freeglut_state.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/freeglut/freeglut/freeglut-1.3/freeglut_state.c b/freeglut/freeglut/freeglut-1.3/freeglut_state.c index bd0b1e6..7da99fa 100644 --- a/freeglut/freeglut/freeglut-1.3/freeglut_state.c +++ b/freeglut/freeglut/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 ); } /*