1
0
mirror of synced 2024-11-24 15:50:16 +01:00

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

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()) {