1
0
mirror of synced 2025-01-19 01:24:15 +01:00

fix: Custom encodings not rendering correctly on non-zero page

This commit is contained in:
WerWolv 2023-01-22 14:17:55 +01:00
parent acf6b839e5
commit c86891e0c3
2 changed files with 2 additions and 2 deletions

@ -1 +1 @@
Subproject commit b800b55ac870e11c9c2d346f08427c8f2e2a95c5
Subproject commit 898ef23c82c26632b8a53d60c1ea46ab55fe29a6

View File

@ -206,7 +206,7 @@ namespace hex::plugin::builtin::ui {
size_t size = std::min<size_t>(longestSequence, provider->getActualSize() - address);
std::vector<u8> buffer(size);
provider->read(address + provider->getBaseAddress() + provider->getCurrentPageAddress(), buffer.data(), size);
provider->read(address, buffer.data(), size);
const auto [decoded, advance] = encodingFile.getEncodingFor(buffer);
const ImColor color = [&decoded = decoded, &advance = advance]{