X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fmswin%2Ffg_window_mswin.c;h=7aef7a7715d5523e318477b79fe0ae6010ff00fe;hb=da343200dc5266f4421672ea305b6ab99b817cef;hp=ff474045e2e3db84262aae122a5843e49ea96730;hpb=3e5d1e857f4bf0e28d550c4ccf3aaa1617331a8f;p=freeglut 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 );