From 871c344a629dc834cd89ca1874bd8715e6726db9 Mon Sep 17 00:00:00 2001 From: Diederick Niehorster Date: Fri, 16 Nov 2012 15:07:33 +0000 Subject: [PATCH] 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 --- src/mswin/fg_main_mswin.c | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 */ -- 1.7.10.4