[aseprite] 231/308: Fix minor cast int <-> double issues in src/app/color.cpp
Tobias Hansen
thansen at moszumanska.debian.org
Tue Mar 8 02:45:14 UTC 2016
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository aseprite.
commit e2a72352c5417c795c16c895d1f0bc22be116eb4
Author: David Capello <davidcapello at gmail.com>
Date: Fri Feb 12 18:53:59 2016 -0300
Fix minor cast int <-> double issues in src/app/color.cpp
---
src/app/color.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/app/color.cpp b/src/app/color.cpp
index 993642c..6f2b3d5 100644
--- a/src/app/color.cpp
+++ b/src/app/color.cpp
@@ -139,11 +139,11 @@ Color Color::fromString(const std::string& str)
}
if (str[0] == 'r')
- color = Color::fromRgb(table[0], table[1], table[2], int(table[3]));
+ color = Color::fromRgb(int(table[0]), int(table[1]), int(table[2]), int(table[3]));
else if (str[0] == 'h')
color = Color::fromHsv(table[0], table[1], table[2], int(table[3]));
else if (str[0] == 'g')
- color = Color::fromGray(table[0], (c >= 2 ? int(table[1]): 255));
+ color = Color::fromGray(int(table[0]), (c >= 2 ? int(table[1]): 255));
}
else if (str.find("index{") == 0) {
color = Color::fromIndex(std::strtol(str.c_str()+6, NULL, 10));
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git
More information about the Pkg-games-commits
mailing list