diff --git a/src/font/text_formatting.cpp b/src/font/text_formatting.cpp index 405d4b3efeec..a2b30d87839c 100644 --- a/src/font/text_formatting.cpp +++ b/src/font/text_formatting.cpp @@ -21,7 +21,7 @@ namespace font { -std::string rgb2highlight_pango(uint32_t rgb) +std::string unit32_to_pango_color(uint32_t rgb) { std::ostringstream h; @@ -50,7 +50,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 rgb2highlight_pango(color->second[0]); + return unit32_to_pango_color(color->second[0]); } return ""; diff --git a/src/font/text_formatting.hpp b/src/font/text_formatting.hpp index 6ea3915e76eb..d338c5c1414d 100644 --- a/src/font/text_formatting.hpp +++ b/src/font/text_formatting.hpp @@ -29,7 +29,7 @@ namespace font { * @param color The 32 byte color to convert to hex format. * For example, 0x00CC00CC becomes "#CC00CC". */ -std::string rgb2highlight_pango(uint32_t rgb); +std::string unit32_to_pango_color(uint32_t rgb); /** * Returns a hex color string from a SDL_Color object. The '#' prefix is not prepended. diff --git a/src/team.cpp b/src/team.cpp index 9ffed7292a56..9110b8a6fc00 100644 --- a/src/team.cpp +++ b/src/team.cpp @@ -850,7 +850,7 @@ std::string team::get_side_color_index(int side) std::string team::get_side_highlight_pango(int side) { - return font::rgb2highlight_pango(get_side_color_range(side+1).mid()); + return font::unit32_to_pango_color(get_side_color_range(side+1).mid()); } void team::log_recruitable() const {