/*
- * freeglut_state_mswin.c
+ * fg_state_mswin.c
*
* The Windows-specific state query methods.
*
* all other extra pixels are assumed to be atop the window, forming the caption.
*/
borderWidth = ((winRect.right-winRect.left)-(clientRect.right-clientRect.left))/2;
- captionHeight = (winRect.bottom-winRect.top)-(clientRect.bottom-clientRect.top)-borderWidth*2;
+ captionHeight = (winRect.bottom-winRect.top)-(clientRect.bottom-clientRect.top)-borderWidth; /* include top border in caption height */
switch( eWhat )
{
default:
fgWarning( "glutDeviceGet(): missing enum handle %d", eWhat );
+ return -1;
break;
}
-
- /* And now -- the failure. */
- return -1;
}
/*
{
*size = 0;
return NULL;
-}
\ No newline at end of file
+}