impr: Further optimize ImGui text rendering

This commit is contained in:
WerWolv
2024-06-27 17:09:20 +02:00
parent 7d42742684
commit e5c782ebe9
5 changed files with 40 additions and 15 deletions

View File

@@ -63,11 +63,11 @@ namespace hex::plugin::builtin {
ImGui::TextUnformatted(" ");
break;
case 0xFF:
ImGui::TextDisabled("##");
ImGuiExt::TextFormattedDisabled("##");
break;
default:
if (c >= ' ' && c <= '~')
ImGui::Text(".%c", c);
ImGuiExt::TextFormatted(".{:c}", char(c));
else
ImGui::Text(getFormatString(upperCase), c);
break;