From: Roel Kluin Date: Wed, 6 Jan 2010 16:20:28 +0000 (-0800) Subject: win32_menu: add missing parentheses in mapMenu() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5db710a8231fe50d2faad8e9adb2a07616cc6130;p=mesa.git win32_menu: add missing parentheses in mapMenu() `|' has higher precedence than `?'. Signed-off-by: Roel Kluin Signed-off-by: Brian Paul --- 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); }