mirror of
https://github.com/wolfpld/tracy
synced 2025-05-01 05:03:53 +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
|
#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()
|
bool View::Draw()
|
||||||
{
|
{
|
||||||
HandshakeStatus status = (HandshakeStatus)s_instance->m_worker.GetHandshakeStatus();
|
HandshakeStatus status = (HandshakeStatus)s_instance->m_worker.GetHandshakeStatus();
|
||||||
|
@ -115,8 +115,6 @@ private:
|
|||||||
|
|
||||||
void DrawHelpMarker( const char* desc ) const;
|
void DrawHelpMarker( const char* desc ) const;
|
||||||
|
|
||||||
void DrawTextContrast( ImDrawList* draw, const ImVec2& pos, uint32_t color, const char* text );
|
|
||||||
|
|
||||||
bool DrawImpl();
|
bool DrawImpl();
|
||||||
void DrawNotificationArea();
|
void DrawNotificationArea();
|
||||||
bool DrawConnection();
|
bool DrawConnection();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user