Progressively remove namespaces.

This commit is contained in:
Bartosz Taudul 2022-08-15 15:44:13 +02:00
parent af934f1387
commit 89016454f8
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -925,7 +925,17 @@ const char* View::ShortenZoneName( const char* name, ImVec2& tsz, float zsz ) co
tsz = ImGui::CalcTextSize( ptr, end );
if( tsz.x < zsz ) return ptr;
return ptr;
for(;;)
{
auto p = ptr;
while( p < end && *p != ':' ) p++;
if( p == end ) return ptr;
p++;
while( p < end && *p == ':' ) p++;
ptr = p;
tsz = ImGui::CalcTextSize( ptr, end );
if( tsz.x < zsz ) return ptr;
}
}
const char* View::GetThreadContextData( uint64_t thread, bool& _local, bool& _untracked, const char*& program )