diff options
Diffstat (limited to 'src/guichan/color.cpp')
-rw-r--r-- | src/guichan/color.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/guichan/color.cpp b/src/guichan/color.cpp index 7cc3b887a..87d110b63 100644 --- a/src/guichan/color.cpp +++ b/src/guichan/color.cpp @@ -106,9 +106,9 @@ namespace gcn Color Color::operator*(const float value) const { - Color result(static_cast<int>(r * value), - static_cast<int>(g * value), - static_cast<int>(b * value), + Color result(static_cast<int>(static_cast<float>(r) * value), + static_cast<int>(static_cast<float>(g) * value), + static_cast<int>(static_cast<float>(b) * value), a); result.r = (result.r > 255 ? 255 : (result.r < 0 ? 0 : result.r)); |