mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
impr: Optimize default hex cell visualizer
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user