From 262dfa53e99ef8fba7a33824dbfbd808e16a251e Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sun, 22 Oct 2017 17:30:02 +0200 Subject: [PATCH] Display lock number on lock list in options. --- server/TracyView.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 2e5450c0..51330f91 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -2792,7 +2792,9 @@ void View::DrawOptions() ImGui::Indent( tw ); for( auto& l : m_lockMap ) { - ImGui::Checkbox( GetString( GetSourceLocation( l.second.srcloc ).function ), &l.second.visible ); + char buf[1024]; + sprintf( buf, "%" PRIu64 ": %s", l.first, GetString( GetSourceLocation( l.second.srcloc ).function ) ); + ImGui::Checkbox( buf , &l.second.visible ); } ImGui::Unindent( tw ); ImGui::Separator();