git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1700
7f0cb862-5218-0410-a997-
914c9d46530a
width, height,\r
x ,y,\r
x-border,\r
- y-border-caption);\r
+ y-caption);\r
else\r
printf("child window %dx%d, top-left of client at: (%d,%d), relative to parent\n",\r
width, height,\r
* 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 )
{