From ea9475dfdfaa220efea117fddfab24bd4b6ea12d Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Tue, 11 Aug 2020 18:51:57 +0200 Subject: [PATCH] Add Tracy's name to window title. --- profiler/src/main.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index ad9583fb..c92b8b33 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -76,7 +76,9 @@ static bool s_customTitle = false; static void SetWindowTitleCallback( const char* title ) { assert( s_glfwWindow ); - glfwSetWindowTitle( s_glfwWindow, title ); + char tmp[1024]; + sprintf( tmp, "%s - Tracy Profiler %i.%i.%i", title, tracy::Version::Major, tracy::Version::Minor, tracy::Version::Patch ); + glfwSetWindowTitle( s_glfwWindow, tmp ); s_customTitle = true; }