diff options
author | Filippos Karapetis | 2010-09-07 07:41:28 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-09-07 07:41:28 +0000 |
commit | b2464a9bd15556de586a2936f96c2515e84ae050 (patch) | |
tree | 2c81a40590ff25f78297379f0773661aa4aeadb0 /engines/sci/graphics | |
parent | c42e2f3a551d18f24ad05ebb8008e300ed4da3ed (diff) | |
download | scummvm-rg350-b2464a9bd15556de586a2936f96c2515e84ae050.tar.gz scummvm-rg350-b2464a9bd15556de586a2936f96c2515e84ae050.tar.bz2 scummvm-rg350-b2464a9bd15556de586a2936f96c2515e84ae050.zip |
SCI: Slight change in GfxPicture::vectorFloodFill()
Changed bitwise XOR operations to bitwise NOT AND, to make the code a bit easier
to understand
svn-id: r52614
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r-- | engines/sci/graphics/picture.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/graphics/picture.cpp b/engines/sci/graphics/picture.cpp index 2765663381..39666b82cb 100644 --- a/engines/sci/graphics/picture.cpp +++ b/engines/sci/graphics/picture.cpp @@ -853,11 +853,11 @@ void GfxPicture::vectorFloodFill(int16 x, int16 y, byte color, byte priority, by // 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) |