[Scummvm-cvs-logs] SF.net SVN: scummvm:[52615] scummvm/trunk/engines/sci/graphics/screen.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Tue Sep 7 10:12:59 CEST 2010
Revision: 52615
http://scummvm.svn.sourceforge.net/scummvm/?rev=52615&view=rev
Author: thebluegr
Date: 2010-09-07 08:12:59 +0000 (Tue, 07 Sep 2010)
Log Message:
-----------
SCI: Added parentheses inside GfxScreen::isFillMatch() to make the code more
readable
Modified Paths:
--------------
scummvm/trunk/engines/sci/graphics/screen.cpp
Modified: scummvm/trunk/engines/sci/graphics/screen.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/screen.cpp 2010-09-07 07:41:28 UTC (rev 52614)
+++ scummvm/trunk/engines/sci/graphics/screen.cpp 2010-09-07 08:12:59 UTC (rev 52615)
@@ -345,11 +345,11 @@
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;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list