some doc on why not using GetClientRect for getting the position of the
[freeglut] / src / mswin / fg_window_mswin.c
index ff47404..7aef7a7 100644 (file)
@@ -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 );