patterns: Fixed `color` attribute taking BGR instead of RGB

This commit is contained in:
WerWolv 2021-10-09 23:38:00 +02:00
parent 76391edad6
commit 0226f3d047
1 changed files with 1 additions and 1 deletions

View File

@ -594,7 +594,7 @@ namespace hex::pl {
if (name == "color" && requiresValue()) {
u32 color = strtoul(value->c_str(), nullptr, 16);
pattern->setColor(color);
pattern->setColor(hex::changeEndianess(color, std::endian::big) >> 8);
} else if (name == "name" && requiresValue()) {
pattern->setVariableName(*value);
} else if (name == "comment" && requiresValue()) {