Allow specification of end address in TextColoredUnformatted.

This commit is contained in:
Bartosz Taudul 2020-04-25 00:10:37 +02:00
parent 3e583b1373
commit 21506386c4

View File

@ -25,10 +25,10 @@ namespace tracy
ImGui::TextUnformatted( text ); 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::PushStyleColor( ImGuiCol_Text, col );
ImGui::TextUnformatted( text ); ImGui::TextUnformatted( text, end );
ImGui::PopStyleColor(); ImGui::PopStyleColor();
} }