X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fmswin%2Ffg_state_mswin.c;h=b8f3e00dae0416ac2065c205ee15c4baaa389e14;hb=1b70e38531ff6972e40bc48ba118928c65db59c2;hp=7c510c58fd0e0a5cf26c7fbe5ff6b3d962bc26b6;hpb=daa90bda29db30afb45cc64b02a10b1994e2de94;p=freeglut diff --git a/src/mswin/fg_state_mswin.c b/src/mswin/fg_state_mswin.c index 7c510c5..b8f3e00 100644 --- a/src/mswin/fg_state_mswin.c +++ b/src/mswin/fg_state_mswin.c @@ -1,5 +1,5 @@ /* - * freeglut_state_mswin.c + * fg_state_mswin.c * * The Windows-specific state query methods. * @@ -32,7 +32,7 @@ extern GLboolean fgSetupPixelFormat( SFG_Window* window, GLboolean checkOnly, unsigned char layer_type ); -/* +/* * Helper functions for getting client area from the window rect * and the window rect from the client area given the style of the window * (or a valid window pointer from which the style can be queried). @@ -146,7 +146,7 @@ int fgPlatformGlutGet ( GLenum eWhat ) HDC hdc = fgStructure.CurrentWindow->Window.pContext.Device; int iPixelFormat = GetPixelFormat( hdc ); DescribePixelFormat(hdc, iPixelFormat, sizeof(PIXELFORMATDESCRIPTOR), &pfd); - + returnValue = pfd.cColorBits; if (pfd.iPixelType==PFD_TYPE_RGBA) returnValue += pfd.cAlphaBits; @@ -183,7 +183,7 @@ int fgPlatformGlutGet ( GLenum eWhat ) GetWindowRect( fgStructure.CurrentWindow->Window.Handle, &winRect); #else ClientToScreen(fgStructure.CurrentWindow->Window.Handle, &topLeft); - + if (fgStructure.CurrentWindow->Parent) /* For child window, we should return relative to upper-left * of parent's client area. @@ -257,7 +257,7 @@ int fgPlatformGlutGet ( GLenum eWhat ) */ borderWidth = ((winRect.right-winRect.left)-(clientRect.right-clientRect.left))/2; captionHeight = (winRect.bottom-winRect.top)-(clientRect.bottom-clientRect.top)-borderWidth; /* include top border in caption height */ - + switch( eWhat ) { case GLUT_WINDOW_BORDER_WIDTH: @@ -289,7 +289,7 @@ int fgPlatformGlutGet ( GLenum eWhat ) break; } - return -1; + return -1; } @@ -345,4 +345,4 @@ int *fgPlatformGlutGetModeValues(GLenum eWhat, int *size) { *size = 0; return NULL; -} \ No newline at end of file +}