From fdadb9cb63decad4a234736d665cbc91dfc08a45 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Thu, 18 Nov 2021 23:03:17 +0100 Subject: [PATCH] Update source view font. --- server/TracySourceView.hpp | 1 + server/TracyView.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/server/TracySourceView.hpp b/server/TracySourceView.hpp index 6cc3c986..faae8934 100644 --- a/server/TracySourceView.hpp +++ b/server/TracySourceView.hpp @@ -143,6 +143,7 @@ public: SourceView( ImFont* font, GetWindowCallback gwcb ); + void UpdateFont( ImFont* font ) { m_font = font; } void SetCpuId( uint32_t cpuid ); void OpenSource( const char* fileName, int line, const View& view, const Worker& worker ); diff --git a/server/TracyView.cpp b/server/TracyView.cpp index 76ac874a..dae48430 100644 --- a/server/TracyView.cpp +++ b/server/TracyView.cpp @@ -15279,6 +15279,7 @@ void View::DrawTextEditor() ImGui::SetNextWindowSize( ImVec2( 1800 * scale, 800 * scale ), ImGuiCond_FirstUseEver ); bool show = true; ImGui::Begin( "Source view", &show, ImGuiWindowFlags_NoScrollbar ); + m_sourceView->UpdateFont( m_fixedFont ); m_sourceView->Render( m_worker, *this ); ImGui::End(); if( !show ) m_sourceViewFile = nullptr;