diff options
| -rw-r--r-- | src/color-rgba.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/color-rgba.h b/src/color-rgba.h index 24bc63b52..18c8b14e9 100644 --- a/src/color-rgba.h +++ b/src/color-rgba.h @@ -114,9 +114,13 @@ public: bool operator== (const ColorRGBA other) const { for (int i = 0; i < 4; i++) { if (_c[i] != other[i]) - return FALSE; + return false; } - return TRUE; + return true; + } + + bool operator!=(ColorRGBA const &o) const { + return !(*this == o); } /** |
