projects
/
freeglut
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e5d1e8
)
some doc on why not using GetClientRect for getting the position of the
author
Diederick Niehorster
<dcnieho@gmail.com>
Mon, 6 Aug 2012 03:10:33 +0000
(
03:10
+0000)
committer
Diederick Niehorster
<dcnieho@gmail.com>
Mon, 6 Aug 2012 03:10:33 +0000
(
03:10
+0000)
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
patch
|
blob
|
history
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)
+ * 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 );