1
0
mirror of synced 2025-01-30 19:43:43 +01:00

ui: Display correct offsets in hex editor header when base address is not aligned

This commit is contained in:
WerWolv 2021-05-23 22:52:09 +02:00
parent 143cdbd44b
commit 1aa21b8a2d
2 changed files with 2 additions and 2 deletions

View File

@ -272,7 +272,7 @@ struct MemoryEditor
if (OptMidColsCount > 0) if (OptMidColsCount > 0)
byte_pos_x += (float)(i / OptMidColsCount) * s.SpacingBetweenMidCols; byte_pos_x += (float)(i / OptMidColsCount) * s.SpacingBetweenMidCols;
ImGui::SameLine(byte_pos_x); ImGui::SameLine(byte_pos_x);
ImGui::Text("%02X", i); ImGui::Text("%02llX", i + (base_display_addr % Cols));
} }
ImGui::EndChild(); ImGui::EndChild();