Commit 7e19723f authored by twanvl's avatar twanvl

Fixed: Incorrect comparison operator for AColor caused Scriptable<AColor>s to...

Fixed: Incorrect comparison operator for AColor caused Scriptable<AColor>s to not be updated when only the alpha changed.
parent 3b846eeb
......@@ -25,6 +25,11 @@ class AColor : public Color {
inline AColor() : alpha(0) {}
inline AColor(Byte r, Byte g, Byte b, Byte a = 255) : Color(r,g,b), alpha(a) {}
inline AColor(const Color& color, Byte a = 255) : Color(color), alpha(a) {}
inline bool operator == (const AColor& that) const {
return static_cast<const Color&>(*this) == static_cast<const Color&>(that) && alpha == that.alpha;
}
inline bool operator != (const AColor& that) const { return ! (*this == that); }
};
// ----------------------------------------------------------------------------- : Parsing
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment