From e981fa2073ca4d1d34396a49959137c07e9fc615 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 17 Jun 2019 01:54:18 -0400 Subject: [PATCH] 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. --- Source/Core/VideoCommon/Statistics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/VideoCommon/Statistics.cpp b/Source/Core/VideoCommon/Statistics.cpp index b92c6fadc8..e8808a684d 100644 --- a/Source/Core/VideoCommon/Statistics.cpp +++ b/Source/Core/VideoCommon/Statistics.cpp @@ -43,7 +43,7 @@ void Statistics::Display() ImGui::Columns(2, "Statistics", true); const auto draw_statistic = [](const char* name, const char* format, auto&&... args) { - ImGui::Text(name); + ImGui::TextUnformatted(name); ImGui::NextColumn(); ImGui::Text(format, std::forward(args)...); ImGui::NextColumn(); @@ -103,7 +103,7 @@ void Statistics::DisplayProj() 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::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);