1
0
mirror of synced 2024-11-24 15:50:16 +01:00

impr: Optimize default hex cell visualizer

This commit is contained in:
WerWolv 2024-06-26 19:15:49 +02:00
parent ec080ad69f
commit a84db9821c

View File

@ -19,7 +19,7 @@ namespace hex::plugin::builtin {
hex::unused(address); hex::unused(address);
if (size == ByteCount) if (size == ByteCount)
ImGui::Text(getFormatString(upperCase), *reinterpret_cast<const T*>(data)); ImGuiExt::TextFormatted(upperCase ? "{:0{}X}" : "{:0{}x}", *reinterpret_cast<const T*>(data), sizeof(T) * 2);
else else
ImGuiExt::TextFormatted("{: {}s}", CharCount); ImGuiExt::TextFormatted("{: {}s}", CharCount);
} }