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; return;
} }
else
{
// Upgrade either color, if necessary. // Upgrade either color, if necessary.
if (!(value & _COLOR_256)) upgrade (); if (!(value & _COLOR_256)) upgrade ();
if (!(c.value & _COLOR_256)) c.upgrade (); if (!(c.value & _COLOR_256)) c.upgrade ();
@@ -369,6 +370,7 @@ void Color::blend (const Color& other)
value |= (c.value & _COLOR_BG); // Apply other color. value |= (c.value & _COLOR_BG); // Apply other color.
} }
} }
}
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
void Color::upgrade () void Color::upgrade ()