Added some parentheses for a little more macro safety. Recommended by Petri
Kero, here: http://www.devolution.com/pipermail/sdl/2005-March/067630.html --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%401047
This commit is contained in:
parent
dc6bb60504
commit
20dbe0d931
3 changed files with 3 additions and 3 deletions
|
@ -120,7 +120,7 @@ extern DECLSPEC int SDLCALL SDL_ShowCursor(int toggle);
|
|||
Button 4: Mouse wheel up (may also be a real button)
|
||||
Button 5: Mouse wheel down (may also be a real button)
|
||||
*/
|
||||
#define SDL_BUTTON(X) (SDL_PRESSED<<(X-1))
|
||||
#define SDL_BUTTON(X) (SDL_PRESSED << ((X)-1))
|
||||
#define SDL_BUTTON_LEFT 1
|
||||
#define SDL_BUTTON_MIDDLE 2
|
||||
#define SDL_BUTTON_RIGHT 3
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue