Code Cleanup

- Made the Color::blend code structure match that in vitapi, for
  easier comparison.
This commit is contained in:
Paul Beckingham
2010-07-23 22:47:51 -07:00
parent eeeff7d389
commit 6f67c0093d

View File

@@ -349,7 +349,8 @@ void Color::blend (const Color& other)
return;
}
else
{
// Upgrade either color, if necessary.
if (!(value & _COLOR_256)) upgrade ();
if (!(c.value & _COLOR_256)) c.upgrade ();
@@ -368,6 +369,7 @@ void Color::blend (const Color& other)
value &= ~_COLOR_BG; // Remove previous color.
value |= (c.value & _COLOR_BG); // Apply other color.
}
}
}
////////////////////////////////////////////////////////////////////////////////