projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
some doc on why not using GetClientRect for getting the position of the
[freeglut]
/
src
/
mswin
/
fg_window_mswin.c
diff --git
a/src/mswin/fg_window_mswin.c
b/src/mswin/fg_window_mswin.c
index
ff47404
..
7aef7a7
100644
(file)
--- 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)
/*
* 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 );
*/
GetWindowRect( window->Window.Handle, &windowRect );