Code Cleanup
- Made the Color::blend code structure match that in vitapi, for easier comparison.
This commit is contained in:
@@ -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 ()
|
||||||
|
|||||||
Reference in New Issue
Block a user