diff options
author | Bartosz Taudul <wolf@nereid.pl> | 2022-09-11 01:44:26 +0300 |
---|---|---|
committer | Bartosz Taudul <wolf@nereid.pl> | 2022-09-11 01:46:27 +0300 |
commit | c27bcc524cd7ac66433391dd035c825c4d6bf358 (patch) | |
tree | 729592f656b69042c78c257f90ba2fc59ce5e16b /server/TracyView.cpp | |
parent | f8cf7ff45a5bff769af54fa50fde9b0bb6f3b572 (diff) |
Store syntax colors as 32-bit uints.
Diffstat (limited to 'server/TracyView.cpp')
-rw-r--r-- | server/TracyView.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 85f2e0e8..ca9e33dd 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -1247,7 +1247,9 @@ void View::DrawSourceTooltip( const char* filename, uint32_t srcline, int before ImGui::TextUnformatted( ptr, it->begin ); ImGui::SameLine( 0, 0 ); } - TextColoredUnformatted( i == srcline-1 ? SyntaxColors[(int)it->color] : SyntaxColorsDimmed[(int)it->color], it->begin, it->end ); + auto color = SyntaxColors[(int)it->color]; + if( i != srcline-1 ) color = ( color & 0xFFFFFF ) | 0x99000000; + TextColoredUnformatted( color, it->begin, it->end ); ImGui::SameLine( 0, 0 ); ptr = it->end; ++it; |