win32_menu: add missing parentheses in mapMenu()
authorRoel Kluin <roel.kluin@gmail.com>
Wed, 6 Jan 2010 16:20:28 +0000 (08:20 -0800)
committerBrian Paul <brianp@vmware.com>
Wed, 6 Jan 2010 16:46:55 +0000 (09:46 -0700)
`|' has higher precedence than `?'.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Brian Paul <brianp@vmware.com>
src/glut/glx/win32_menu.c

index 5ce264dcdb7d8441ecab360e862a9f920e29dcb3..d8e336ceed752e3aa01026f8ea43ba2815dbb9dc 100644 (file)
@@ -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);
 }