[Scummvm-cvs-logs] SF.net SVN: scummvm:[52614] scummvm/trunk/engines/sci/graphics/picture.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Tue Sep 7 09:41:28 CEST 2010
Revision: 52614
http://scummvm.svn.sourceforge.net/scummvm/?rev=52614&view=rev
Author: thebluegr
Date: 2010-09-07 07:41:28 +0000 (Tue, 07 Sep 2010)
Log Message:
-----------
SCI: Slight change in GfxPicture::vectorFloodFill()
Changed bitwise XOR operations to bitwise NOT AND, to make the code a bit easier
to understand
Modified Paths:
--------------
scummvm/trunk/engines/sci/graphics/picture.cpp
Modified: scummvm/trunk/engines/sci/graphics/picture.cpp
===================================================================
--- scummvm/trunk/engines/sci/graphics/picture.cpp 2010-09-06 22:18:10 UTC (rev 52613)
+++ scummvm/trunk/engines/sci/graphics/picture.cpp 2010-09-07 07:41:28 UTC (rev 52614)
@@ -853,11 +853,11 @@
// Now remove screens, that already got the right color/priority/control
if ((screenMask & GFX_SCREEN_MASK_VISUAL) && (searchColor == color))
- screenMask ^= GFX_SCREEN_MASK_VISUAL;
+ screenMask &= ~GFX_SCREEN_MASK_VISUAL;
if ((screenMask & GFX_SCREEN_MASK_PRIORITY) && (searchPriority == priority))
- screenMask ^= GFX_SCREEN_MASK_PRIORITY;
+ screenMask &= ~GFX_SCREEN_MASK_PRIORITY;
if ((screenMask & GFX_SCREEN_MASK_CONTROL) && (searchControl == control))
- screenMask ^= GFX_SCREEN_MASK_CONTROL;
+ screenMask &= ~GFX_SCREEN_MASK_CONTROL;
// Exit, if no screens left
if (!screenMask)
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