Turns out color_range colors are stored as ARGB
This commit is contained in:
Charles Dang 2016-11-30 10:31:59 +11:00
parent bb5d3078d9
commit 85eca5a970
2 changed files with 2 additions and 2 deletions

View file

@ -31,7 +31,7 @@ std::string get_pango_color_from_id(const std::string& id)
{
const auto color = game_config::team_rgb_colors.find(id);
if(color != game_config::team_rgb_colors.end()) {
return color_t::from_rgba_bytes(color->second[0]).to_hex_string();
return color_t::from_argb_bytes(color->second[0]).to_hex_string();
}
return "";

View file

@ -850,7 +850,7 @@ std::string team::get_side_color_index(int side)
std::string team::get_side_highlight_pango(int side)
{
return color_t::from_rgba_bytes(get_side_color_range(side + 1).mid()).to_hex_string();
return color_t::from_argb_bytes(get_side_color_range(side + 1).mid()).to_hex_string();
}
void team::log_recruitable() const {