1
0
mirror of synced 2024-11-24 07:40:17 +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);
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
ImGuiExt::TextFormatted("{: {}s}", CharCount);
}