Make zone highlight color a derivative of zone color.

This commit is contained in:
Bartosz Taudul 2017-10-01 19:38:45 +02:00
parent 79073383b4
commit 35562ed6e2

View File

@ -1520,7 +1520,11 @@ uint32_t View::GetZoneHighlight( const Event& ev )
}
else
{
return 0xFF888888;
const auto color = GetZoneColor( ev );
return 0xFF000000 |
( std::min<int>( 0xFF, ( ( ( color & 0x00FF0000 ) >> 16 ) + 25 ) ) << 16 ) |
( std::min<int>( 0xFF, ( ( ( color & 0x0000FF00 ) >> 8 ) + 25 ) ) << 8 ) |
( std::min<int>( 0xFF, ( ( ( color & 0x000000FF ) ) + 25 ) ) );
}
}