From: Diederick Niehorster Date: Thu, 4 Apr 2013 10:12:02 +0000 (+0000) Subject: error in checking if mouse is in window when opening menu... X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=commitdiff_plain;h=8255a4e895c56fa302e3f4beb045e4ff2bf2bb3c;p=freeglut error in checking if mouse is in window when opening menu... git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1581 7f0cb862-5218-0410-a997-914c9d46530a --- diff --git a/src/fg_menu.c b/src/fg_menu.c index 853c1b4..0247a88 100644 --- a/src/fg_menu.c +++ b/src/fg_menu.c @@ -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.MouseXState.Width && window->State.MouseXState.Height) + window->State.MouseXState.Width && window->State.MouseYState.Height) { /* XXX Posting a requisite Redisplay seems bogus. */ window->State.Redisplay = GL_TRUE;