diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2010-01-06 08:20:28 -0800 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-01-06 09:46:55 -0700 |
commit | 5db710a8231fe50d2faad8e9adb2a07616cc6130 (patch) | |
tree | c8baabf0fadee9edf596cecb5b3bf2ba3fd40b6f | |
parent | 2b4acd26b1680eda9622205bbc1879da30d085bc (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>
-rw-r--r-- | src/glut/glx/win32_menu.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |