From: Diederick Niehorster Date: Fri, 16 Nov 2012 15:07:33 +0000 (+0000) Subject: added note about maximizing behavior on Windows (when the maximize X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=871c344a629dc834cd89ca1874bd8715e6726db9;p=freeglut added note about maximizing behavior on Windows (when the maximize window tool is pressed by the user) -- resize borders are by default of the screen to maximize the client area. Lets not change this as FreeGLUT has stuck with this default for a long time. git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1395 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/src/mswin/fg_main_mswin.c b/src/mswin/fg_main_mswin.c index a9f8552..3013f80 100644 --- a/src/mswin/fg_main_mswin.c +++ b/src/mswin/fg_main_mswin.c @@ -75,6 +75,16 @@ void fgPlatformReshapeWindow ( SFG_Window *window, int width, int height ) * For windowed mode, get the current position of the * window and resize taking the size of the frame * decorations into account. + * + * Note on maximizing behavior of Windows: the resize borders are off + * the screen such that the client area extends all the way from the + * leftmost corner to the rightmost corner to maximize screen real + * estate. A caption is still shown however to allow interaction with + * the window controls. This is default behavior of Windows that + * FreeGLUT sticks with. To alter, one would have to check if + * WS_MAXIMIZE style is set when a resize event is triggered, and + * then manually correct the windowRect to put the borders back on + * screen. */ /* "GetWindowRect" returns the pixel coordinates of the outside of the window */