Skip to content
Browse files

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.
  • Loading branch information...
lioncash committed Jun 17, 2019
1 parent 1c40fd8 commit e981fa2073ca4d1d34396a49959137c07e9fc615
Showing with 2 additions and 2 deletions.
  1. +2 −2 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(format, std::forward<decltype(args)>(args)...);
@@ -103,7 +103,7 @@ void Statistics::DisplayProj()

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::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);

0 comments on commit e981fa2

Please sign in to comment.
You can’t perform that action at this time.