Compare commits

...

2 Commits

2 changed files with 9 additions and 1 deletions

View File

@ -111,6 +111,14 @@ namespace hex::init {
glyphRangesBuilder.AddRanges(fonts->GetGlyphRangesKorean());
glyphRangesBuilder.AddRanges(fonts->GetGlyphRangesThai());
glyphRangesBuilder.AddRanges(fonts->GetGlyphRangesVietnamese());
{
constexpr static ImWchar controlCodeRange[] = { 0x0000, 0x001F, 0 };
constexpr static ImWchar extendedAsciiRange[] = { 0x007F, 0x00FF, 0 };
glyphRangesBuilder.AddRanges(controlCodeRange);
glyphRangesBuilder.AddRanges(extendedAsciiRange);
}
glyphRangesBuilder.BuildRanges(&ranges);
}

View File

@ -242,7 +242,7 @@ namespace hex::plugin::builtin {
size_t byteCount = std::min<size_t>(0x10 - offset, region.size);
ImHexApi::Provider::get()->read(region.address, bytes.data() + offset, byteCount);
for (size_t byte = 0; byte < 0x10; byte++) {
for (size_t byte = 0; byte < (offset % 0x10) + byteCount; byte++) {
if (byte < offset)
ImGui::TextUnformatted(" ");
else