mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Obey custom plot colors.
This commit is contained in:
parent
b026e09a09
commit
b782b021c7
@ -39,6 +39,7 @@ uint32_t View::GetPlotColor( const PlotData* plot ) const
|
||||
switch( plot->type )
|
||||
{
|
||||
case PlotType::User:
|
||||
if( plot->color != 0 ) return plot->color | 0xFF000000;
|
||||
return GetHsvColor( charutil::hash( m_worker.GetString( plot->name ) ), -10 );
|
||||
case PlotType::Memory:
|
||||
return 0xFF2266CC;
|
||||
|
Loading…
Reference in New Issue
Block a user