mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 10:41:50 +00:00
Move DrawTextContrast() to TracyImGui.hpp.
This commit is contained in:
parent
c1ed44bd35
commit
44096dfcf2
@ -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
|
||||
|
@ -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();
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user