Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBartosz Taudul <wolf@nereid.pl>2022-07-30 20:32:25 +0300
committerBartosz Taudul <wolf@nereid.pl>2022-07-30 20:32:25 +0300
commitb19f9e1f4d5da34337a8da55301b0545c62a9bf6 (patch)
treeeeedb4ad1bb918ef0b15b7dd8ac5456bc0c45d6f /server/TracyView.cpp
parent92871ba75ad279be275a2466e7d3513e9bcbea7a (diff)
Use common functionality to get frame set name.
Diffstat (limited to 'server/TracyView.cpp')
-rw-r--r--server/TracyView.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/TracyView.cpp b/server/TracyView.cpp
index 10b1a3e9..cad711cd 100644
--- a/server/TracyView.cpp
+++ b/server/TracyView.cpp
@@ -845,7 +845,7 @@ bool View::DrawImpl()
{
ImGui::PushStyleColor( ImGuiCol_Text, GImGui->Style.Colors[ImGuiCol_TextDisabled] );
}
- ImGui::Text( "%s: %s", m_frames->name == 0 ? "Frames" : m_worker.GetString( m_frames->name ), RealToString( m_worker.GetFrameCount( *m_frames ) ) );
+ ImGui::Text( "%s: %s", GetFrameSetName( *m_frames ), RealToString( m_worker.GetFrameCount( *m_frames ) ) );
if( !vis )
{
ImGui::PopStyleColor();
@@ -861,7 +861,7 @@ bool View::DrawImpl()
for( auto& fd : frames )
{
bool isSelected = m_frames == fd;
- if( ImGui::Selectable( fd->name == 0 ? "Frames" : m_worker.GetString( fd->name ), isSelected ) )
+ if( ImGui::Selectable( GetFrameSetName( *fd ), isSelected ) )
{
m_frames = fd;
}