projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2b4acd2
)
win32_menu: add missing parentheses in mapMenu()
author
Roel Kluin
<roel.kluin@gmail.com>
Wed, 6 Jan 2010 16:20:28 +0000
(08:20 -0800)
committer
Brian 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
patch
|
blob
|
history
diff --git
a/src/glut/glx/win32_menu.c
b/src/glut/glx/win32_menu.c
index 5ce264dcdb7d8441ecab360e862a9f920e29dcb3..d8e336ceed752e3aa01026f8ea43ba2815dbb9dc 100644
(file)
--- 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);
}