We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0222753 commit 5665fb8Copy full SHA for 5665fb8
src/base/gfx/color.cpp
@@ -40,8 +40,8 @@ Color::Color(const std::string &string)
40
else if (string[0] == '#' && string.size() == 4)
41
{
42
auto r = (uint8_t)Text::Character::fromHex(string[1]);
43
- auto g = (uint8_t)Text::Character::fromHex(string[3]);
44
- auto b = (uint8_t)Text::Character::fromHex(string[5]);
+ auto g = (uint8_t)Text::Character::fromHex(string[2]);
+ auto b = (uint8_t)Text::Character::fromHex(string[3]);
45
red = ((r << 4) + r) / 255.0;
46
green = ((g << 4) + g) / 255.0;
47
blue = ((b << 4) + b) / 255.0;
0 commit comments