diff options
author | Filippos Karapetis | 2010-09-07 08:12:59 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-09-07 08:12:59 +0000 |
commit | dd0095f1a210aa54f379fe51967def65a0dc5fdf (patch) | |
tree | b0f69a80158da0dc1c1b822c7b5be887c0720ae3 /engines/sci/graphics | |
parent | b2464a9bd15556de586a2936f96c2515e84ae050 (diff) | |
download | scummvm-rg350-dd0095f1a210aa54f379fe51967def65a0dc5fdf.tar.gz scummvm-rg350-dd0095f1a210aa54f379fe51967def65a0dc5fdf.tar.bz2 scummvm-rg350-dd0095f1a210aa54f379fe51967def65a0dc5fdf.zip |
SCI: Added parentheses inside GfxScreen::isFillMatch() to make the code more
readable
svn-id: r52615
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r-- | engines/sci/graphics/screen.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/graphics/screen.cpp b/engines/sci/graphics/screen.cpp index 839b9975c5..6eabc7c9f0 100644 --- a/engines/sci/graphics/screen.cpp +++ b/engines/sci/graphics/screen.cpp @@ -345,11 +345,11 @@ byte GfxScreen::isFillMatch(int16 x, int16 y, byte screenMask, byte t_color, byt int offset = y * _width + x; byte match = 0; - if (screenMask & GFX_SCREEN_MASK_VISUAL && *(_visualScreen + offset) == t_color) + if ((screenMask & GFX_SCREEN_MASK_VISUAL) && *(_visualScreen + offset) == t_color) match |= GFX_SCREEN_MASK_VISUAL; - if (screenMask & GFX_SCREEN_MASK_PRIORITY && *(_priorityScreen + offset) == t_pri) + if ((screenMask & GFX_SCREEN_MASK_PRIORITY) && *(_priorityScreen + offset) == t_pri) match |= GFX_SCREEN_MASK_PRIORITY; - if (screenMask & GFX_SCREEN_MASK_CONTROL && *(_controlScreen + offset) == t_con) + if ((screenMask & GFX_SCREEN_MASK_CONTROL) && *(_controlScreen + offset) == t_con) match |= GFX_SCREEN_MASK_CONTROL; return match; } |