feat: Greatly improved diff view

Fixes #631
This commit is contained in:
WerWolv
2023-02-15 17:01:36 +01:00
parent 07fd86fc9d
commit 3067ff08ec
6 changed files with 263 additions and 206 deletions

View File

@@ -535,7 +535,7 @@ namespace hex::plugin::builtin::ui {
ImGui::PushStyleVar(ImGuiStyleVar_FramePadding, ImVec2(0, 0));
ImGui::PushItemWidth(CharacterSize.x);
if (!isCurrRegionValid(byteAddress))
ImGui::TextDisabled("?");
ImGui::TextFormattedDisabled("{}", this->m_unknownDataCharacter);
else
this->drawCell(byteAddress, &bytes[x], 1, cellHovered, CellType::ASCII);
ImGui::PopItemWidth();
@@ -673,8 +673,6 @@ namespace hex::plugin::builtin::ui {
}
} else {
ImGui::TextFormattedCentered("hex.builtin.hex_editor.no_bytes"_lang);
}
ImGui::EndTable();