fix: Processing and drawing of diffs

This commit is contained in:
WerWolv
2024-02-11 19:29:02 +01:00
parent 5cfcca0bc4
commit 0aae605ac4
5 changed files with 66 additions and 35 deletions

View File

@@ -24,6 +24,7 @@ namespace hex::plugin::diffing {
struct Column {
ui::HexEditor hexEditor;
ContentRegistry::Diffing::DiffTree diffTree;
std::vector<ContentRegistry::Diffing::DiffTree::Data> differences;
int provider = -1;
i32 scrollLock = 0;
@@ -33,6 +34,8 @@ namespace hex::plugin::diffing {
std::function<std::optional<color_t>(u64, const u8*, size_t)> createCompareFunction(size_t otherIndex) const;
void analyze(prv::Provider *providerA, prv::Provider *providerB);
void reset();
private:
std::array<Column, 2> m_columns;