mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-27 00:04:35 +00:00
Colors are always in RGB order.
This commit is contained in:
parent
02b3e54943
commit
2f9a3f7046
@ -111,7 +111,7 @@ namespace detail
|
|||||||
|
|
||||||
static inline int LuaZoneBegin( lua_State* L )
|
static inline int LuaZoneBegin( lua_State* L )
|
||||||
{
|
{
|
||||||
const uint32_t color = 0x00CC8855;
|
const uint32_t color = 0x005588CC;
|
||||||
|
|
||||||
lua_Debug dbg;
|
lua_Debug dbg;
|
||||||
lua_getstack( L, 1, &dbg );
|
lua_getstack( L, 1, &dbg );
|
||||||
@ -152,7 +152,7 @@ static inline int LuaZoneBegin( lua_State* L )
|
|||||||
|
|
||||||
static inline int LuaZoneBeginN( lua_State* L )
|
static inline int LuaZoneBeginN( lua_State* L )
|
||||||
{
|
{
|
||||||
const uint32_t color = 0x00CC8855;
|
const uint32_t color = 0x005588CC;
|
||||||
|
|
||||||
lua_Debug dbg;
|
lua_Debug dbg;
|
||||||
lua_getstack( L, 1, &dbg );
|
lua_getstack( L, 1, &dbg );
|
||||||
|
@ -1089,6 +1089,10 @@ void View::AddSourceLocationPayload( uint64_t ptr, char* data, size_t sz )
|
|||||||
|
|
||||||
const auto nsz = sz - ( end - start );
|
const auto nsz = sz - ( end - start );
|
||||||
|
|
||||||
|
color = ( ( color & 0x00FF0000 ) >> 16 ) |
|
||||||
|
( ( color & 0x0000FF00 ) ) |
|
||||||
|
( ( color & 0x000000FF ) << 16 );
|
||||||
|
|
||||||
SourceLocation srcloc { nsz == 0 ? StringRef() : StringRef( StringRef::Idx, StoreString( end, nsz ).idx ), StringRef( StringRef::Idx, func.idx ), StringRef( StringRef::Idx, source.idx ), line, color };
|
SourceLocation srcloc { nsz == 0 ? StringRef() : StringRef( StringRef::Idx, StoreString( end, nsz ).idx ), StringRef( StringRef::Idx, func.idx ), StringRef( StringRef::Idx, source.idx ), line, color };
|
||||||
auto it = m_sourceLocationPayloadMap.find( &srcloc );
|
auto it = m_sourceLocationPayloadMap.find( &srcloc );
|
||||||
if( it == m_sourceLocationPayloadMap.end() )
|
if( it == m_sourceLocationPayloadMap.end() )
|
||||||
|
Loading…
Reference in New Issue
Block a user