feat: Added support for changing the page size

This commit is contained in:
WerWolv
2023-05-23 11:34:30 +02:00
parent 28778eaf8c
commit 0e3da22c76
7 changed files with 84 additions and 14 deletions

View File

@@ -693,7 +693,8 @@ namespace hex::plugin::builtin::ui {
// Page Address
ImGui::TableNextColumn();
{
ImGui::TextFormatted("{0}: 0x{1:08X} - 0x{2:08X} ({1} - {2})", "hex.builtin.hex_editor.region"_lang, this->m_provider->getCurrentPageAddress(), this->m_provider->getSize());
auto pageAddress = this->m_provider->getCurrentPageAddress();
ImGui::TextFormatted("{0}: 0x{1:08X} - 0x{2:08X} ({1} - {2})", "hex.builtin.hex_editor.region"_lang, pageAddress, pageAddress + this->m_provider->getSize() - 1);
}
ImGui::TableNextRow();