diff --git a/server/TracySourceView.hpp b/server/TracySourceView.hpp index 3441c62b..162305d6 100644 --- a/server/TracySourceView.hpp +++ b/server/TracySourceView.hpp @@ -143,7 +143,7 @@ private: public: SourceView(); - void UpdateFont( ImFont* fixed, ImFont* small ) { m_font = fixed; m_smallFont = small; } + void UpdateFont( ImFont* fixed, ImFont* small, ImFont* big ) { m_font = fixed; m_smallFont = small; m_bigFont = big; } void SetCpuId( uint32_t cpuid ); void OpenSource( const char* fileName, int line, const View& view, const Worker& worker ); @@ -200,6 +200,7 @@ private: ImFont* m_font; ImFont* m_smallFont; + ImFont* m_bigFont; uint64_t m_symAddr; uint64_t m_baseAddr; uint64_t m_targetAddr; diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 5ea9d7a2..1d92e3ac 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -1180,7 +1180,7 @@ void View::DrawTextEditor() ImGui::Begin( "Source view", &show, ImGuiWindowFlags_NoScrollbar ); if( !ImGui::GetCurrentWindowRead()->SkipItems ) { - m_sourceView->UpdateFont( m_fixedFont, m_smallFont ); + m_sourceView->UpdateFont( m_fixedFont, m_smallFont, m_bigFont ); m_sourceView->Render( m_worker, *this ); } ImGui::End();