summaryrefslogtreecommitdiff
path: root/src/gui/color.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-07 01:53:51 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-07 01:53:51 +0300
commit2492b561385859b7ef76fe816a8dc845f0b9bd09 (patch)
tree62633f8cd7c027c2a8e1bae61264a79394aeb751 /src/gui/color.cpp
parentce14a018a6f66aa1309ebe71a8217082d83cd0da (diff)
downloadmanaplus-2492b561385859b7ef76fe816a8dc845f0b9bd09.tar.gz
manaplus-2492b561385859b7ef76fe816a8dc845f0b9bd09.tar.bz2
manaplus-2492b561385859b7ef76fe816a8dc845f0b9bd09.tar.xz
manaplus-2492b561385859b7ef76fe816a8dc845f0b9bd09.zip
Fix some casts between signed and unsigned in some files.
Diffstat (limited to 'src/gui/color.cpp')
-rw-r--r--src/gui/color.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/color.cpp b/src/gui/color.cpp
index 85c77f08e..3e82a1210 100644
--- a/src/gui/color.cpp
+++ b/src/gui/color.cpp
@@ -126,9 +126,9 @@ Color Color::operator-(const Color& color) const
Color Color::operator*(const float value) const
{
- 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),
+ Color result(static_cast<unsigned int>(static_cast<float>(r) * value),
+ static_cast<unsigned int>(static_cast<float>(g) * value),
+ static_cast<unsigned int>(static_cast<float>(b) * value),
a);
result.r = (result.r > 255U ? 255U : result.r);