1
0
mirror of https://github.com/wolfpld/tracy.git synced 2025-03-20 07:40:02 +08:00

Don't pass GetFrameOffset() results to GetFrameText().

Frame offset can be retrieved internally.
This commit is contained in:
Bartosz Taudul
2023-03-04 00:29:00 +01:00
parent 9155b01ddf
commit 8164b776fd
3 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -768,9 +768,9 @@ uint64_t View::GetFrameNumber( const FrameData& fd, int i, uint64_t offset ) con
}
}
const char* View::GetFrameText( const FrameData& fd, int i, uint64_t ftime, uint64_t offset ) const
const char* View::GetFrameText( const FrameData& fd, int i, uint64_t ftime ) const
{
const auto fnum = GetFrameNumber( fd, i, offset );
const auto fnum = GetFrameNumber( fd, i, m_worker.GetFrameOffset() );
static char buf[1024];
if( fd.name == 0 )
{