mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
fix: Plot lines being invisible
This commit is contained in:
@@ -31,6 +31,9 @@ namespace hex::api {
|
||||
}
|
||||
|
||||
std::optional<ImColor> ThemeManager::parseColorString(const std::string &colorString) {
|
||||
if (colorString == "auto")
|
||||
return ImVec4(0, 0, 0, -1);
|
||||
|
||||
if (colorString.length() != 9 || colorString[0] != '#')
|
||||
return std::nullopt;
|
||||
|
||||
@@ -48,6 +51,9 @@ namespace hex::api {
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
if (color == 0x00000000)
|
||||
return ImVec4(0, 0, 0, -1);
|
||||
|
||||
return ImColor(hex::changeEndianess(color, std::endian::big));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user