width or height
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1485
7f0cb862-5218-0410-a997-
914c9d46530a
RECT winRect;
POINT topLeft = {0,0};
- freeglut_return_val_if_fail( fgStructure.CurrentWindow != NULL, 0 );
#if defined(_WIN32_WCE)
GetWindowRect( fgStructure.CurrentWindow->Window.Handle, &winRect);
break;
case GLUT_WINDOW_WIDTH:
+ freeglut_return_val_if_fail( fgStructure.CurrentWindow != NULL, 0 );
return fgStructure.CurrentWindow->State.Width;
case GLUT_WINDOW_HEIGHT:
+ freeglut_return_val_if_fail( fgStructure.CurrentWindow != NULL, 0 );
return fgStructure.CurrentWindow->State.Height;
case GLUT_WINDOW_BORDER_WIDTH :