GLUT_WINDOW_BORDER_* is about borders, not inner size (thanks again Dee)

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1287 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
beuc 2012-05-03 07:55:19 +00:00
parent 750e6d3aea
commit 6ba33936f9

View File

@ -64,11 +64,9 @@ int fgPlatformGlutGet ( GLenum eWhat )
/* One full-screen window only */ /* One full-screen window only */
case GLUT_WINDOW_X: case GLUT_WINDOW_X:
case GLUT_WINDOW_Y: case GLUT_WINDOW_Y:
return 0;
case GLUT_WINDOW_BORDER_WIDTH: case GLUT_WINDOW_BORDER_WIDTH:
return fgPlatformGlutGet(GLUT_WINDOW_WIDTH);
case GLUT_WINDOW_HEADER_HEIGHT: case GLUT_WINDOW_HEADER_HEIGHT:
return fgPlatformGlutGet(GLUT_WINDOW_HEIGHT); return 0;
case GLUT_WINDOW_WIDTH: case GLUT_WINDOW_WIDTH:
case GLUT_WINDOW_HEIGHT: case GLUT_WINDOW_HEIGHT: