mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-26 04:35:16 +00:00
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
This commit is contained in:
parent
c42e2f3a55
commit
b2464a9bd1
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user