From ed9922c8a9be3854bae76877b501656937568d33 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Thu, 19 Nov 2020 21:43:03 +0100 Subject: [PATCH] Only print 4 characters for type size by default --- include/lang/pattern_data.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/lang/pattern_data.hpp b/include/lang/pattern_data.hpp index ca52b4e8e..c47b25e9c 100644 --- a/include/lang/pattern_data.hpp +++ b/include/lang/pattern_data.hpp @@ -126,7 +126,7 @@ namespace hex::lang { ImGui::TableNextColumn(); ImGui::Text("0x%08lx : 0x%08lx", this->getOffset(), this->getOffset() + this->getSize()); ImGui::TableNextColumn(); - ImGui::Text("0x%08lx", this->getSize()); + ImGui::Text("0x%04lx", this->getSize()); ImGui::TableNextColumn(); ImGui::Text("%s", this->getTypeName().c_str()); ImGui::TableNextColumn(); @@ -153,7 +153,7 @@ namespace hex::lang { u64 data = 0; provider->read(this->getOffset(), &data, this->getSize()); - this->createDefaultEntry(hex::format("%lu (0x%0*lx)", data, , this->getSize() * 2, data)); + this->createDefaultEntry(hex::format("%lu (0x%0*lx)", data, this->getSize() * 2, data)); } std::string getTypeName() override { @@ -268,7 +268,7 @@ namespace hex::lang { ImGui::TableNextColumn(); ImGui::Text("0x%08lx : 0x%08lx", this->getOffset(), this->getOffset() + this->getSize()); ImGui::TableNextColumn(); - ImGui::Text("0x%08lx", this->getSize()); + ImGui::Text("0x%04lx", this->getSize()); ImGui::TableNextColumn(); ImGui::Text("%s", this->getTypeName().c_str()); ImGui::TableNextColumn(); @@ -313,7 +313,7 @@ namespace hex::lang { ImGui::TableNextColumn(); ImGui::Text("0x%08lx : 0x%08lx", this->getOffset(), this->getOffset() + this->getSize()); ImGui::TableNextColumn(); - ImGui::Text("0x%08lx", this->getSize()); + ImGui::Text("0x%04lx", this->getSize()); ImGui::TableNextColumn(); ImGui::Text("%s", this->getTypeName().c_str()); ImGui::TableNextColumn();