mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
impr: Get rid of more unnecessary ImGui::Text() calls
This commit is contained in:
@@ -482,7 +482,7 @@ namespace hex::plugin::builtin {
|
||||
|
||||
ImGui::TableNextColumn();
|
||||
|
||||
ImGui::Text("=");
|
||||
ImGui::TextUnformatted("=");
|
||||
|
||||
// Sign.
|
||||
ImGui::TableNextColumn();
|
||||
@@ -496,14 +496,14 @@ namespace hex::plugin::builtin {
|
||||
ImGui::Indent(10_scaled);
|
||||
ImGui::TableSetBgColor(ImGuiTableBgTarget_CellBg, signColorU32);
|
||||
if (ieee754.signBits == 1)
|
||||
ImGui::Text("-1");
|
||||
ImGui::TextUnformatted("-1");
|
||||
else
|
||||
ImGui::Text("+1");
|
||||
ImGui::TextUnformatted("+1");
|
||||
ImGui::Unindent(10_scaled);
|
||||
|
||||
// Times.
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::Text("x");
|
||||
ImGui::TextUnformatted("x");
|
||||
ImGui::TableNextColumn();
|
||||
|
||||
// Exponent.
|
||||
@@ -512,13 +512,13 @@ namespace hex::plugin::builtin {
|
||||
ImGui::Indent(20_scaled);
|
||||
if (ieee754.numberType == NumberType::NaN) {
|
||||
if (ieee754.valueType == ValueType::QuietNaN)
|
||||
ImGui::Text("qNaN");
|
||||
ImGui::TextUnformatted("qNaN");
|
||||
else
|
||||
ImGui::Text("sNaN");
|
||||
ImGui::TextUnformatted("sNaN");
|
||||
} else if (ieee754.numberType == NumberType::Infinity) {
|
||||
ImGui::Text("Inf");
|
||||
ImGui::TextUnformatted("Inf");
|
||||
} else if (ieee754.numberType == NumberType::Zero) {
|
||||
ImGui::Text("0");
|
||||
ImGui::TextUnformatted("0");
|
||||
} else if (ieee754.numberType == NumberType::Denormal) {
|
||||
ImGuiExt::TextFormatted("2^{0}", 1 - ieee754.exponentBias);
|
||||
} else {
|
||||
@@ -529,7 +529,7 @@ namespace hex::plugin::builtin {
|
||||
|
||||
// Times.
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::Text("x");
|
||||
ImGui::TextUnformatted("x");
|
||||
ImGui::TableNextColumn();
|
||||
|
||||
// Mantissa.
|
||||
@@ -652,7 +652,7 @@ namespace hex::plugin::builtin {
|
||||
|
||||
// Equals.
|
||||
ImGui::TableNextColumn();
|
||||
ImGui::Text("=");
|
||||
ImGui::TextUnformatted("=");
|
||||
|
||||
FormatBits(signBitPosition, exponentBitPosition, mantissaBitPosition);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user