small updates to one demo, so windowed windows display after the
[freeglut] / src / mswin / fg_state_mswin.c
index 659ceca..9df5211 100644 (file)
@@ -210,7 +210,7 @@ int fgPlatformGlutGet ( GLenum eWhat )
     break;
 
     case GLUT_WINDOW_BORDER_WIDTH :
-    case GLUT_WINDOW_HEADER_HEIGHT :
+    case GLUT_WINDOW_BORDER_HEIGHT :
 #if defined(_WIN32_WCE)
         return 0;
 #else
@@ -248,11 +248,8 @@ int fgPlatformGlutGet ( GLenum eWhat )
             switch( eWhat )
             {
             case GLUT_WINDOW_BORDER_WIDTH:
-                {
-                    return borderWidth;
-                }
-            case GLUT_WINDOW_HEADER_HEIGHT:
-                /* Need to query for WS_MAXIMIZEBOX to see if we have a title bar, the WS_CAPTION query is also true for a WS_DLGFRAME only... */
+                return borderWidth;
+            case GLUT_WINDOW_BORDER_HEIGHT:
                 return captionHeight;
             }
         }