From 21506386c4b35950655eafbdc428b01d62effa59 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Sat, 25 Apr 2020 00:10:37 +0200 Subject: [PATCH] Allow specification of end address in TextColoredUnformatted. --- server/TracyImGui.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/TracyImGui.hpp b/server/TracyImGui.hpp index 0ff4cab8..d887299f 100644 --- a/server/TracyImGui.hpp +++ b/server/TracyImGui.hpp @@ -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(); }