mirror of
https://github.com/wolfpld/tracy
synced 2025-04-29 20:33:52 +00:00
Add Tracy's name to window title.
This commit is contained in:
parent
0aa77c9176
commit
ea9475dfdf
@ -76,7 +76,9 @@ static bool s_customTitle = false;
|
|||||||
static void SetWindowTitleCallback( const char* title )
|
static void SetWindowTitleCallback( const char* title )
|
||||||
{
|
{
|
||||||
assert( s_glfwWindow );
|
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;
|
s_customTitle = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user