Move DrawTextContrast() to TracyImGui.hpp.

This commit is contained in:
Bartosz Taudul 2020-03-30 22:39:34 +02:00
parent c1ed44bd35
commit 44096dfcf2
3 changed files with 6 additions and 8 deletions

View File

@ -89,6 +89,12 @@ namespace tracy
}
}
static inline void DrawTextContrast( ImDrawList* draw, const ImVec2& pos, uint32_t color, const char* text )
{
draw->AddText( pos + ImVec2( 1, 1 ), 0xAA000000, text );
draw->AddText( pos, color, text );
}
}
#endif

View File

@ -292,12 +292,6 @@ void View::DrawHelpMarker( const char* desc ) const
}
}
void View::DrawTextContrast( ImDrawList* draw, const ImVec2& pos, uint32_t color, const char* text )
{
draw->AddText( pos + ImVec2( 1, 1 ), 0xAA000000, text );
draw->AddText( pos, color, text );
}
bool View::Draw()
{
HandshakeStatus status = (HandshakeStatus)s_instance->m_worker.GetHandshakeStatus();

View File

@ -115,8 +115,6 @@ private:
void DrawHelpMarker( const char* desc ) const;
void DrawTextContrast( ImDrawList* draw, const ImVec2& pos, uint32_t color, const char* text );
bool DrawImpl();
void DrawNotificationArea();
bool DrawConnection();