diff options
| author | Lioncash <mathew1800@gmail.com> | 2019-06-17 01:54:18 -0400 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2019-06-17 02:27:26 -0400 |
| commit | e981fa2073ca4d1d34396a49959137c07e9fc615 (patch) | |
| tree | 274b1991d205600bf5ce28e712f8893c1fec8056 /Source/Core/VideoCommon/Statistics.cpp | |
| parent | 1c40fd85690b87e614f79a161755c02265cd0570 (diff) | |
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.
Diffstat (limited to 'Source/Core/VideoCommon/Statistics.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/Statistics.cpp | 4 |
1 files 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<decltype(args)>(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); |
