X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_state.c;fp=src%2Ffreeglut_state.c;h=1cabb9dc6e943b55e952a83d1a1c8b4ea19a2529;hb=a160acfee096bef8a8c51194efa8e2262e719125;hp=9126c4fdda1ae3d46e9d9c7c1a5d1043a18653ce;hpb=ded8742fba5a4622b49778679cc7e26d197d75c5;p=freeglut diff --git a/src/freeglut_state.c b/src/freeglut_state.c index 9126c4f..1cabb9d 100644 --- a/src/freeglut_state.c +++ b/src/freeglut_state.c @@ -468,7 +468,8 @@ int FGAPIENTRY glutGet( GLenum eWhat ) #if !defined(_WIN32_WCE) if ( ( fgStructure.GameModeWindow != fgStructure.CurrentWindow ) && ( fgStructure.CurrentWindow->Parent == NULL ) && - ( ! fgStructure.CurrentWindow->IsMenu ) ) + ( ! fgStructure.CurrentWindow->IsMenu ) && + !( fgState.DisplayMode & GLUT_BORDERLESS )) { winRect.left += GetSystemMetrics( SM_CXSIZEFRAME ); winRect.right -= GetSystemMetrics( SM_CXSIZEFRAME ); @@ -491,6 +492,8 @@ int FGAPIENTRY glutGet( GLenum eWhat ) #if defined(_WIN32_WCE) return 0; #else + if ( fgState.DisplayMode & GLUT_BORDERLESS ) + return 0; return GetSystemMetrics( SM_CXSIZEFRAME ); #endif /* !defined(_WIN32_WCE) */ @@ -498,6 +501,8 @@ int FGAPIENTRY glutGet( GLenum eWhat ) #if defined(_WIN32_WCE) return 0; #else + if ( fgState.DisplayMode & GLUT_BORDERLESS ) + return 0; return GetSystemMetrics( SM_CYCAPTION ); #endif /* defined(_WIN32_WCE) */