From 5125c2487be8782a9df9d56421fcf148bfd8b1ad Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Fri, 17 Aug 2018 17:57:13 +0200 Subject: [PATCH] Use exclamation icon instead of ascii representation. --- server/TracyView.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/TracyView.cpp b/server/TracyView.cpp index e770323e..488dd89d 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -5872,11 +5872,19 @@ void View::DrawTextEditor() { bool show = true; ImGui::Begin( "Source view", &show ); +#ifdef TRACY_EXTENDED_FONT + ImGui::TextColored( ImVec4( 1.f, 1.f, 0.2f, 1.f ), "\xef\x81\xb1" ); +#else ImGui::TextColored( ImVec4( 1.f, 1.f, 0.2f, 1.f ), "/!\\" ); +#endif ImGui::SameLine(); ImGui::TextColored( ImVec4( 1.f, 0.3f, 0.3f, 1.f ), "The source file contents might not reflect the actual profiled code!" ); ImGui::SameLine(); +#ifdef TRACY_EXTENDED_FONT + ImGui::TextColored( ImVec4( 1.f, 1.f, 0.2f, 1.f ), "\xef\x81\xb1" ); +#else ImGui::TextColored( ImVec4( 1.f, 1.f, 0.2f, 1.f ), "/!\\" ); +#endif TextFocused( "File:", m_textEditorFile ); if( m_textEditorFont ) ImGui::PushFont( m_textEditorFont ); m_textEditor->Render( m_textEditorFile, ImVec2(), true );