1
0
mirror of synced 2024-11-28 09:30:51 +01:00

fix: Diffing view not highlighting correctly with a custom base address

This commit is contained in:
WerWolv 2023-12-17 23:34:19 +01:00
parent 3b5efb37e9
commit 978558649e

View File

@ -111,7 +111,7 @@ namespace hex::plugin::builtin {
auto &otherProvider = providers[otherId];
// Handle the case where one provider is larger than the other one
if (address > otherProvider->getActualSize()) {
if ((address - otherProvider->getBaseAddress()) > otherProvider->getActualSize()) {
if (otherIndex == 1)
return getDiffColor(ImGuiExt::GetCustomColorU32(ImGuiCustomCol_DiffAdded));
else