error in checking if mouse is in window when opening menu...
authorDiederick Niehorster <dcnieho@gmail.com>
Thu, 4 Apr 2013 10:12:02 +0000 (10:12 +0000)
committerDiederick Niehorster <dcnieho@gmail.com>
Thu, 4 Apr 2013 10:12:02 +0000 (10:12 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1581 7f0cb862-5218-0410-a997-914c9d46530a

src/fg_menu.c

index 853c1b4..0247a88 100644 (file)
@@ -672,7 +672,7 @@ GLboolean fgCheckActiveMenu ( SFG_Window *window, int button, GLboolean pressed,
          * window thus has mouse capture
          */
         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. */
             window->State.Redisplay = GL_TRUE;