From bab70a823dd810e1d4477f0c01d3a7b3e9b19ac8 Mon Sep 17 00:00:00 2001 From: alberth Date: Mon, 1 Jun 2009 11:43:36 +0000 Subject: (svn r16491) -Codechange: Added parentheses around bitwise operators for code style. --- src/video/allegro_v.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/video') diff --git a/src/video/allegro_v.cpp b/src/video/allegro_v.cpp index cbcda9f34..0e90daf90 100644 --- a/src/video/allegro_v.cpp +++ b/src/video/allegro_v.cpp @@ -327,7 +327,7 @@ static void PollEvent() ClrBit(diff, button); if (HasBit(mouse_b, button)) { /* Pressed mouse button */ - if (_rightclick_emulate && key_shifts & KB_CTRL_FLAG) { + if (_rightclick_emulate && (key_shifts & KB_CTRL_FLAG)) { button = RIGHT_BUTTON; ClrBit(diff, RIGHT_BUTTON); } @@ -391,7 +391,7 @@ static void PollEvent() if (mouse_action) HandleMouseEvents(); poll_keyboard(); - if (key_shifts & KB_ALT_FLAG && (key[KEY_ENTER] || key[KEY_F])) { + if ((key_shifts & KB_ALT_FLAG) && (key[KEY_ENTER] || key[KEY_F])) { ToggleFullScreen(!_fullscreen); } else if (keypressed()) { HandleKeypress(ConvertAllegroKeyIntoMy()); -- cgit v1.2.3-70-g09d2