From 58a343f2e3a9b3fb7bf5c1efff4c872665bc9f79 Mon Sep 17 00:00:00 2001 From: dcnieho Date: Thu, 4 Apr 2013 10:12:02 +0000 Subject: [PATCH] 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 --- freeglut/freeglut/src/fg_menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/freeglut/freeglut/src/fg_menu.c b/freeglut/freeglut/src/fg_menu.c index 853c1b4..0247a88 100644 --- a/freeglut/freeglut/src/fg_menu.c +++ b/freeglut/freeglut/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;