1
0
mirror of synced 2025-01-18 17:14:13 +01:00

Only print 4 characters for type size by default

This commit is contained in:
WerWolv 2020-11-19 21:43:03 +01:00
parent 3fe231cdb0
commit ed9922c8a9

View File

@ -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();