fix: Wrong start/end offset and size for static array entries in pattern data view
This commit is contained in:
parent
a45d30edca
commit
cfbc6e085a
2
lib/external/pattern_language
vendored
2
lib/external/pattern_language
vendored
@ -1 +1 @@
|
||||
Subproject commit 284f4719d4300c7a62d86670e1944982d9d1026e
|
||||
Subproject commit c7bca89b1aaf4bb942c53bc3561af687eca44667
|
@ -1067,10 +1067,20 @@ namespace hex::ui {
|
||||
|
||||
ImGui::TableNextColumn();
|
||||
|
||||
drawOffsetColumns(pattern);
|
||||
if (!pattern.isLocal()) {
|
||||
ImGui::TableNextColumn();
|
||||
ImGuiExt::TextFormatted("0x{0:08X}", startOffset);
|
||||
ImGui::TableNextColumn();
|
||||
ImGuiExt::TextFormatted("0x{0:08X}", endOffset + endSize - (endSize == 0 ? 0 : 1));
|
||||
} else {
|
||||
ImGui::TableNextColumn();
|
||||
ImGuiExt::TextFormatted("[{}]", "hex.ui.pattern_drawer.local"_lang);
|
||||
ImGui::TableNextColumn();
|
||||
ImGuiExt::TextFormatted("[{}]", "hex.ui.pattern_drawer.local"_lang);
|
||||
}
|
||||
|
||||
ImGui::TableNextColumn();
|
||||
ImGuiExt::TextFormatted("0x{0:04X}", chunkSize);
|
||||
ImGuiExt::TextFormatted("{0} {1}", chunkSize, chunkSize == 1 ? "byte" : "bytes");
|
||||
ImGui::TableNextColumn();
|
||||
ImGuiExt::TextFormattedColored(TextEditor::GetPalette()[u32(TextEditor::PaletteIndex::KnownIdentifier)], "{0}", pattern.getTypeName());
|
||||
ImGui::SameLine(0, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user