fix: Custom encodings not rendering correctly on non-zero page
This commit is contained in:
parent
acf6b839e5
commit
c86891e0c3
2
lib/external/pattern_language
vendored
2
lib/external/pattern_language
vendored
@ -1 +1 @@
|
||||
Subproject commit b800b55ac870e11c9c2d346f08427c8f2e2a95c5
|
||||
Subproject commit 898ef23c82c26632b8a53d60c1ea46ab55fe29a6
|
@ -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]{
|
||||
|
Loading…
x
Reference in New Issue
Block a user