Distinguish fiber threads with green color.

This commit is contained in:
Bartosz Taudul 2021-11-02 01:48:07 +01:00
parent bb72bf10e9
commit e5c44afdcb
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -3304,7 +3304,10 @@ void View::DrawZones()
{
DrawLine( draw, dpos + ImVec2( 0, oldOffset + ostep - 1 ), dpos + ImVec2( w, oldOffset + ostep - 1 ), 0x33FFFFFF );
const auto labelColor = crash.thread == v->id ? ( showFull ? 0xFF2222FF : 0xFF111188 ) : ( showFull ? 0xFFFFFFFF : 0xFF888888 );
uint32_t labelColor;
if( crash.thread == v->id ) labelColor = showFull ? 0xFF2222FF : 0xFF111188;
else if( v->isFiber ) labelColor = showFull ? 0xFF88FF88 : 0xFF448844;
else labelColor = showFull ? 0xFFFFFFFF : 0xFF888888;
if( showFull )
{