From e1fbd991b67fccaa397f8b33562e042e7b8e059b Mon Sep 17 00:00:00 2001 From: Phillip Stephens Date: Tue, 5 Jan 2016 17:45:06 -0800 Subject: [PATCH] Forgot to pass alpha --- include/CColor.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/CColor.hpp b/include/CColor.hpp index cb52926..c9b77b1 100644 --- a/include/CColor.hpp +++ b/include/CColor.hpp @@ -296,7 +296,7 @@ public: void toHSL(float& h, float& s, float& l); CColor toGrayscale() - { return {Math::sqrtF((r * r + g * g + b * b) / 3)}; } + { return {Math::sqrtF((r * r + g * g + b * b) / 3), a}; } }; static inline CColor operator+(float lhs, const CColor& rhs)