summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRoel Kluin <roel.kluin@gmail.com>2010-01-06 08:20:28 -0800
committerBrian Paul <brianp@vmware.com>2010-01-06 09:46:55 -0700
commit5db710a8231fe50d2faad8e9adb2a07616cc6130 (patch)
treec8baabf0fadee9edf596cecb5b3bf2ba3fd40b6f /src
parent2b4acd26b1680eda9622205bbc1879da30d085bc (diff)
win32_menu: add missing parentheses in mapMenu()
`|' has higher precedence than `?'. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: Brian Paul <brianp@vmware.com>
Diffstat (limited to 'src')
-rw-r--r--src/glut/glx/win32_menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glut/glx/win32_menu.c b/src/glut/glx/win32_menu.c
index 5ce264dcdb..d8e336ceed 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);
}