mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Add non-View-dependent thread color getter.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "TracyColor.hpp"
|
||||
#include "TracyPrint.hpp"
|
||||
#include "TracyUtility.hpp"
|
||||
#include "TracyView.hpp"
|
||||
|
||||
namespace tracy
|
||||
@@ -9,8 +10,7 @@ namespace tracy
|
||||
|
||||
uint32_t View::GetThreadColor( uint64_t thread, int depth )
|
||||
{
|
||||
if( m_vd.dynamicColors == 0 ) return 0xFFCC5555;
|
||||
return GetHsvColor( thread, depth );
|
||||
return tracy::GetThreadColor( thread, depth, m_vd.dynamicColors != 0 );
|
||||
}
|
||||
|
||||
uint32_t View::GetRawSrcLocColor( const SourceLocation& srcloc, int depth )
|
||||
|
||||
Reference in New Issue
Block a user