diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 45970b1a..15752152 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -11827,12 +11827,17 @@ uint32_t View::GetZoneColor( const ZoneEvent& ev ) } else { - const auto& srcloc = m_worker.GetSourceLocation( ev.SrcLoc() ); - const auto color = srcloc.color; - return color != 0 ? ( color | 0xFF000000 ) : 0xFFCC5555; + return GetRawZoneColor( ev ); } } +uint32_t View::GetRawZoneColor( const ZoneEvent& ev ) +{ + const auto& srcloc = m_worker.GetSourceLocation( ev.SrcLoc() ); + const auto color = srcloc.color; + return color != 0 ? ( color | 0xFF000000 ) : 0xFFCC5555; +} + uint32_t View::GetZoneColor( const GpuEvent& ev ) { const auto& srcloc = m_worker.GetSourceLocation( ev.srcloc ); @@ -11840,6 +11845,11 @@ uint32_t View::GetZoneColor( const GpuEvent& ev ) return color != 0 ? ( color | 0xFF000000 ) : 0xFF222288; } +uint32_t View::GetRawZoneColor( const GpuEvent& ev ) +{ + return GetZoneColor( ev ); +} + uint32_t View::GetZoneHighlight( const ZoneEvent& ev ) { if( m_zoneInfoWindow == &ev ) diff --git a/server/TracyView.hpp b/server/TracyView.hpp index 7c76b4a1..35edf974 100644 --- a/server/TracyView.hpp +++ b/server/TracyView.hpp @@ -156,6 +156,8 @@ private: uint32_t GetZoneColor( const ZoneEvent& ev ); uint32_t GetZoneColor( const GpuEvent& ev ); + uint32_t GetRawZoneColor( const ZoneEvent& ev ); + uint32_t GetRawZoneColor( const GpuEvent& ev ); uint32_t GetZoneHighlight( const ZoneEvent& ev ); uint32_t GetZoneHighlight( const GpuEvent& ev ); float GetZoneThickness( const ZoneEvent& ev );