diff --git a/server/TracyColor.hpp b/server/TracyColor.hpp index 3fcc7468..5a8ae882 100644 --- a/server/TracyColor.hpp +++ b/server/TracyColor.hpp @@ -20,6 +20,14 @@ static tracy_force_inline uint32_t HighlightColor( uint32_t color ) ( std::min( 0xFF, ( ( ( color & 0x000000FF ) ) + V ) ) ); } +static tracy_force_inline uint32_t DarkenColor( uint32_t color ) +{ + return 0xFF000000 | + ( ( ( ( color & 0x00FF0000 ) >> 16 ) * 2 / 3 ) << 16 ) | + ( ( ( ( color & 0x0000FF00 ) >> 8 ) * 2 / 3 ) << 8 ) | + ( ( ( ( color & 0x000000FF ) ) * 2 / 3 ) ); +} + } #endif diff --git a/server/TracyDecayValue.hpp b/server/TracyDecayValue.hpp index 15df5d4e..d81d3fba 100644 --- a/server/TracyDecayValue.hpp +++ b/server/TracyDecayValue.hpp @@ -43,14 +43,6 @@ private: bool m_active; }; -static tracy_force_inline uint32_t DarkenColor( uint32_t color ) -{ - return 0xFF000000 | - ( ( ( ( color & 0x00FF0000 ) >> 16 ) * 2 / 3 ) << 16 ) | - ( ( ( ( color & 0x0000FF00 ) >> 8 ) * 2 / 3 ) << 8 ) | - ( ( ( ( color & 0x000000FF ) ) * 2 / 3 ) ); -} - } #endif diff --git a/server/TracyView_Locks.cpp b/server/TracyView_Locks.cpp index c21949bc..43e2a8c2 100644 --- a/server/TracyView_Locks.cpp +++ b/server/TracyView_Locks.cpp @@ -1,5 +1,6 @@ #include +#include "TracyColor.hpp" #include "TracyFilesystem.hpp" #include "TracyImGui.hpp" #include "TracyMouse.hpp"