From 1950040461d0e8167c6fd4cba9d1a2814f810d21 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 8 Sep 2024 14:23:05 +0200 Subject: [PATCH] Print git ref in the about dialog. --- profiler/src/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index afff9355..edf60c90 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -68,6 +68,8 @@ #include "ResolvService.hpp" #include "RunQueue.hpp" +#include "GitRef.hpp" + struct ClientData { @@ -714,6 +716,11 @@ static void DrawContents() ImGui::PushFont( s_bigFont ); tracy::TextCentered( buf ); ImGui::PopFont(); + ImGui::PushFont( s_smallFont ); + ImGui::PushStyleColor( ImGuiCol_Text, GImGui->Style.Colors[ImGuiCol_TextDisabled] ); + tracy::TextCentered( tracy::GitRef ); + ImGui::PopStyleColor(); + ImGui::PopFont(); ImGui::Spacing(); ImGui::TextUnformatted( "A real time, nanosecond resolution, remote telemetry, hybrid\nframe and sampling profiler for games and other applications." ); ImGui::Spacing();