From 5db710a8231fe50d2faad8e9adb2a07616cc6130 Mon Sep 17 00:00:00 2001 From: Roel Kluin Date: Wed, 6 Jan 2010 08:20:28 -0800 Subject: win32_menu: add missing parentheses in mapMenu() `|' has higher precedence than `?'. Signed-off-by: Roel Kluin Signed-off-by: Brian Paul --- src/glut/glx/win32_menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/glut/glx') diff --git a/src/glut/glx/win32_menu.c b/src/glut/glx/win32_menu.c index 5ce264dcdb7..d8e336ceed7 100644 --- a/src/glut/glx/win32_menu.c +++ b/src/glut/glx/win32_menu.c @@ -97,7 +97,7 @@ static void mapMenu(GLUTmenu * menu, int x, int y) { TrackPopupMenu((HMENU) menu->win, TPM_LEFTALIGN | - (__glutMenuButton == TPM_RIGHTBUTTON) ? TPM_RIGHTBUTTON : TPM_LEFTBUTTON, + ((__glutMenuButton == TPM_RIGHTBUTTON) ? TPM_RIGHTBUTTON : TPM_LEFTBUTTON), x, y, 0, __glutCurrentWindow->win, NULL); } -- cgit v1.2.3