VideoCommon/Statistics: Use ImGui::TextUnformatted() where applicable

ImGui::Text() assumes that the incoming text is intended to be
formatted, but we don't actually use it to format anything. We can be
explicit by using the relevant function.

This also has a plus of not needing to go through the formatter itself,
but the gains from that are probably minimal.
This commit is contained in:
Lioncash 2019-06-17 01:54:18 -04:00
parent 1c40fd8569
commit e981fa2073
1 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ void Statistics::Display()
ImGui::Columns(2, "Statistics", true); ImGui::Columns(2, "Statistics", true);
const auto draw_statistic = [](const char* name, const char* format, auto&&... args) { const auto draw_statistic = [](const char* name, const char* format, auto&&... args) {
ImGui::Text(name); ImGui::TextUnformatted(name);
ImGui::NextColumn(); ImGui::NextColumn();
ImGui::Text(format, std::forward<decltype(args)>(args)...); ImGui::Text(format, std::forward<decltype(args)>(args)...);
ImGui::NextColumn(); ImGui::NextColumn();
@ -103,7 +103,7 @@ void Statistics::DisplayProj()
return; return;
} }
ImGui::Text("Projection #: X for Raw 6=0 (X for Raw 6!=0)"); ImGui::TextUnformatted("Projection #: X for Raw 6=0 (X for Raw 6!=0)");
ImGui::NewLine(); ImGui::NewLine();
ImGui::Text("Projection 0: %f (%f) Raw 0: %f", stats.gproj_0, stats.g2proj_0, stats.proj_0); ImGui::Text("Projection 0: %f (%f) Raw 0: %f", stats.gproj_0, stats.g2proj_0, stats.proj_0);
ImGui::Text("Projection 1: %f (%f)", stats.gproj_1, stats.g2proj_1); ImGui::Text("Projection 1: %f (%f)", stats.gproj_1, stats.g2proj_1);