mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Allow specification of end address in TextColoredUnformatted.
This commit is contained in:
parent
3e583b1373
commit
21506386c4
@ -25,10 +25,10 @@ namespace tracy
|
||||
ImGui::TextUnformatted( text );
|
||||
}
|
||||
|
||||
static inline void TextColoredUnformatted( const ImVec4& col, const char* text )
|
||||
static inline void TextColoredUnformatted( const ImVec4& col, const char* text, const char* end = nullptr )
|
||||
{
|
||||
ImGui::PushStyleColor( ImGuiCol_Text, col );
|
||||
ImGui::TextUnformatted( text );
|
||||
ImGui::TextUnformatted( text, end );
|
||||
ImGui::PopStyleColor();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user