mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
patterns: Fixed color attribute taking BGR instead of RGB
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user