From fa0322f6b4c91fe79d92d38f10622559214b4e2e Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 15 Aug 2022 22:48:00 +0200 Subject: [PATCH] Push big font to source view. --- server/TracySourceView.hpp | 3 ++- server/TracyView.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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();