include/SDL_mouse.h
changeset 1046 f09d5edfc7a3
parent 911 04a403e4ccf5
child 1312 c9b51268668f
--- a/include/SDL_mouse.h	Fri Apr 01 15:19:26 2005 +0000
+++ b/include/SDL_mouse.h	Sun Apr 17 10:16:30 2005 +0000
@@ -120,7 +120,7 @@
    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