error in checking if mouse is in window when opening menu...

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1581 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
dcnieho 2013-04-04 10:12:02 +00:00
parent 2f172a9cb0
commit 58a343f2e3

View File

@ -672,7 +672,7 @@ GLboolean fgCheckActiveMenu ( SFG_Window *window, int button, GLboolean pressed,
* window thus has mouse capture * window thus has mouse capture
*/ */
if (window->State.MouseX>0 && window->State.MouseY>0 && if (window->State.MouseX>0 && window->State.MouseY>0 &&
window->State.MouseX<window->State.Width && window->State.MouseX<window->State.Height) window->State.MouseX<window->State.Width && window->State.MouseY<window->State.Height)
{ {
/* XXX Posting a requisite Redisplay seems bogus. */ /* XXX Posting a requisite Redisplay seems bogus. */
window->State.Redisplay = GL_TRUE; window->State.Redisplay = GL_TRUE;