diff options
author | pixel <pixel> | 2003-04-02 16:49:45 +0000 |
---|---|---|
committer | pixel <pixel> | 2003-04-02 16:49:45 +0000 |
commit | 33571fe8e9fc2fafd60b72dc7445b4b6cfd969ea (patch) | |
tree | e61ed112250648db40930cdfda7315ae3b9d93d2 /include | |
parent | 3e1220bc766e8a2d2623ffed45ed6d8ec7b8cf38 (diff) |
Color fix
Diffstat (limited to 'include')
-rw-r--r-- | include/Color.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/Color.h b/include/Color.h index ed68eee..e9040b5 100644 --- a/include/Color.h +++ b/include/Color.h @@ -5,6 +5,9 @@ struct Color { Color(unsigned char aR, unsigned char aG, unsigned char aB, unsigned char aA = 255) : R(aR), G(aG), B(aB), A(aA) { } Color(const Color & c) : R(c.R), G(c.G), B(c.B), A(c.A) { } + bool operator==(const Color & c) const { + return (R == c.R) && (G == c.G) && (B == c.B) && (A == c.A); + } unsigned char R, G, B, A; }; |