Add Tracy's name to window title.

This commit is contained in:
Bartosz Taudul 2020-08-11 18:51:57 +02:00
parent 0aa77c9176
commit ea9475dfdf

View File

@ -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;
}