From da343200dc5266f4421672ea305b6ab99b817cef Mon Sep 17 00:00:00 2001 From: Diederick Niehorster Date: Mon, 6 Aug 2012 03:10:33 +0000 Subject: [PATCH] some doc on why not using GetClientRect for getting the position of the client rect on the screen git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1382 7f0cb862-5218-0410-a997-914c9d46530a --- src/mswin/fg_window_mswin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mswin/fg_window_mswin.c b/src/mswin/fg_window_mswin.c index ff47404..7aef7a7 100644 --- a/src/mswin/fg_window_mswin.c +++ b/src/mswin/fg_window_mswin.c @@ -522,6 +522,8 @@ RECT fghGetClientArea( const SFG_Window *window, BOOL wantPosOutside ) /* * call GetWindowRect() * (this returns the pixel coordinates of the outside of the window) + * cannot use GetClientRect as it seems to return a rect relative to + * the top-left point of the client area (.top and .left are thus always 0) */ GetWindowRect( window->Window.Handle, &windowRect ); -- 1.7.10.4