From: Diederick Niehorster Date: Mon, 6 Aug 2012 03:10:33 +0000 (+0000) Subject: some doc on why not using GetClientRect for getting the position of the X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=da343200dc5266f4421672ea305b6ab99b817cef;p=freeglut 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 --- 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 );