Colors are always in RGB order.

This commit is contained in:
Bartosz Taudul 2017-11-25 15:29:18 +01:00
parent 02b3e54943
commit 2f9a3f7046
2 changed files with 6 additions and 2 deletions

View File

@ -111,7 +111,7 @@ namespace detail
static inline int LuaZoneBegin( lua_State* L )
{
const uint32_t color = 0x00CC8855;
const uint32_t color = 0x005588CC;
lua_Debug dbg;
lua_getstack( L, 1, &dbg );
@ -152,7 +152,7 @@ static inline int LuaZoneBegin( lua_State* L )
static inline int LuaZoneBeginN( lua_State* L )
{
const uint32_t color = 0x00CC8855;
const uint32_t color = 0x005588CC;
lua_Debug dbg;
lua_getstack( L, 1, &dbg );

View File

@ -1089,6 +1089,10 @@ void View::AddSourceLocationPayload( uint64_t ptr, char* data, size_t sz )
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 };
auto it = m_sourceLocationPayloadMap.find( &srcloc );
if( it == m_sourceLocationPayloadMap.end() )