mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
Fixed: Incorrect comparison operator for AColor caused Scriptable<AColor>s to not be updated when only the alpha changed.
git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1024 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user