From 71b6b902732bfc0c53033d58f91a6b1e70e8371f Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Thu, 21 Feb 2008 21:01:17 +0000 Subject: more minor updates --- src/math/color.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/math/color.cc') diff --git a/src/math/color.cc b/src/math/color.cc index 9a07b7c..05f3b4c 100644 --- a/src/math/color.cc +++ b/src/math/color.cc @@ -91,7 +91,7 @@ Color operator*(float scalar, const Color& color) } std::ostream &operator<<(std::ostream &os, const Color &c) { - os << c.red() << " " << c.green() << " " << c.blue() << " " << c.alpha(); + os << c.red() << " " << c.green() << " " << c.blue(); // << " " << c.alpha(); return os; } @@ -101,7 +101,8 @@ std::istream &operator>>(std::istream & is, Color & color) is >> r; is >> g; is >> b; - is >> a; + //is >> a; + a = 1.0; color = Color(r,g,b,a); return (is); } -- cgit v1.2.3