Skip to content

Commit

Permalink
color_t: fix from_rgb_string
Browse files Browse the repository at this point in the history
  • Loading branch information
Vultraz committed Dec 10, 2016
1 parent 8da0284 commit 7b34afd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/color.cpp
Expand Up @@ -52,8 +52,8 @@ color_t color_t::from_rgb_string(const std::string& c)

return {
static_cast<uint8_t>(std::stoul(fields[0])),
static_cast<uint8_t>(std::stoul(fields[0])),
static_cast<uint8_t>(std::stoul(fields[0])),
static_cast<uint8_t>(std::stoul(fields[1])),
static_cast<uint8_t>(std::stoul(fields[2])),
static_cast<uint8_t>(ALPHA_OPAQUE)
};
}
Expand Down

0 comments on commit 7b34afd

Please sign in to comment.